e2fsprogs/util/gcc-wall-cleanup
Theodore Ts'o 478360f50b Fix Android build warnings
Also fix some additional gcc -Wall build warnings in a traditional
Linux environment.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2016-05-29 23:51:08 -04:00

24 lines
734 B
Sed
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sed -f
#
# This script filters out gcc-wall crud that we're not interested in seeing.
#
/^cc /d
/^kcc /d
/^gcc /d
/does not support `long long'/d
/forbids long long integer constants/d
/does not support the `ll' length modifier/d
/does not support the `ll' printf length modifier/d
/ANSI C forbids long long integer constants/d
/traditional C rejects string concatenation/d
/integer constant is unsigned in ANSI C, signed with -traditional/d
/ISO C forbids conversion of object pointer to function pointer type/,+2d
/ISO C does not support __FUNCTION__ predefined identifier/d
/At top level:/d
/In file included from/d
/In function `.*':/d
/zero-length format string/d
/warning: (near initialization for/d
/^[ ]*from/d