From: everHannes Date: Sun, 16 Aug 2015 11:24:19 +0000 (+0200) Subject: cleaned some compiler warning flags X-Git-Url: http://git.meshlink.io/?p=catta;a=commitdiff_plain;h=dfdbd757b3e51e2fb52df8c6144af26562d44e75 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 --- 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.