From 3ffd710e12ce64478abc027e92fe94e1089ac91c Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 18 Sep 2010 07:01:48 +0000 Subject: Use gcc warning flag -Wempty-body If the compiler supports the warning flag -Wempty-body, use it. Adjust the code to avoid the warnings. Signed-off-by: Blue Swirl --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 506f29c..80497aa 100755 --- a/configure +++ b/configure @@ -140,7 +140,7 @@ LDFLAGS="-g $LDFLAGS" gcc_flags="-Wold-style-declaration -Wold-style-definition -Wtype-limits" gcc_flags="-Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers $gcc_flags" -gcc_flags="-Wmissing-include-dirs $gcc_flags" +gcc_flags="-Wmissing-include-dirs -Wempty-body $gcc_flags" gcc_flags="-fstack-protector-all $gcc_flags" cat > $TMPC << EOF int main(void) { return 0; } -- cgit v1.1