X-Git-Url: http://git.meshlink.io/?p=catta;a=blobdiff_plain;f=configure.ac;h=cabd87bfdb8f48c0e7b6414c61a7e42662a22e87;hp=01df09db9800f74b478db3247feec12b5f16448e;hb=63d3e3348dcd2178196634ede35b23ffe3a2c50a;hpb=f9f5f0f3cd6c0af6a84af274ef8c4c5302d0a5fb diff --git a/configure.ac b/configure.ac index 01df09d..cabd87b 100644 --- a/configure.ac +++ b/configure.ac @@ -254,7 +254,13 @@ 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 -Wmissing-noreturn -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 -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" + + # when compiling for MingW, -Wmissing-noreturn is triggered a bunch of + # times from autogenerated libtool wrappers, so leave it out on Windows. + if test "x$ac_cv_have_decl__WIN32" != "xyes" ; then + DESIRED_FLAGS="$DESIRED_FLAGS -Wmissing-noreturn" + fi for flag in $DESIRED_FLAGS ; do AC_MSG_CHECKING([whether $CC accepts $flag])