From dfdbd757b3e51e2fb52df8c6144af26562d44e75 Mon Sep 17 00:00:00 2001 From: everHannes Date: Sun, 16 Aug 2015 13:24:19 +0200 Subject: [PATCH] cleaned some compiler warning flags -Wdeclaration-after-statement -> stop confusing c90 warning, compilers by now should support c99 or above -Wformat -> defined by -Wall -Wendif-labels -> enabled by default -Wpointer-arith -> defined by -pedantic -Wno-cast-qual -> -Wcast-qual, have it or remove it refer https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html https://gcc.gnu.org/onlinedocs/cpp/Invocation.html --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index cabd87b..d760f34 100644 --- a/configure.ac +++ b/configure.ac @@ -254,7 +254,7 @@ test_gcc_flag() { # If using GCC specify some additional parameters if test "x$GCC" = "xyes" ; then - DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -fdiagnostics-show-option -Wno-cast-qual -fno-strict-aliasing" + DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wold-style-definition -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -fdiagnostics-show-option -fno-strict-aliasing" # when compiling for MingW, -Wmissing-noreturn is triggered a bunch of # times from autogenerated libtool wrappers, so leave it out on Windows. -- 2.39.5