Otherwise it leads to a lot of annoying warnings in intrin-impl.h like: #if __INTRINSIC_PROLOG(__stosd) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../mingw-w64-headers/include/psdk_inc/intrin-impl.h:1622:1: warning: this use of "defined" may not be portable [-Wexpansion-to-defined] ./../mingw-w64-headers/include/psdk_inc/intrin-impl.h:1622:1: warning: this use of "defined" may not be portable [-Wexpansion-to-defined] ./../mingw-w64-headers/include/psdk_inc/intrin-impl.h:1622:1: warning: this use of "defined" may not be portable [-Wexpansion-to-defined] ./../mingw-w64-headers/include/psdk_inc/intrin-impl.h:1631:1: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
on each call to __INTRINSIC_PROLOG --- mingw-w64-crt/configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mingw-w64-crt/configure.ac b/mingw-w64-crt/configure.ac index b388cb20..f2e0360e 100644 --- a/mingw-w64-crt/configure.ac +++ b/mingw-w64-crt/configure.ac @@ -400,19 +400,19 @@ AC_MSG_RESULT([Level $warning_level]) AS_CASE([$warning_level], [0],[ADD_C_CXX_WARNING_FLAGS="-Wall"], [1],[ - ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra" + ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wno-expansion-to-defined" ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration"], [2],[ - ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow -Wpacked -Winline" + ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wno-expansion-to-defined -Wformat -Wstrict-aliasing -Wshadow -Wpacked -Winline" ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration"], [3],[ - ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow -Wpacked -Winline" + ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wno-expansion-to-defined -Wformat -Wstrict-aliasing -Wshadow -Wpacked -Winline" ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes"], [4],[ - ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing=2 -Wsystem-headers -Wshadow -Wmissing-declarations -Wpacked -Winline -Werror -pedantic" + ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wno-expansion-to-defined -Wformat -Wstrict-aliasing=2 -Wsystem-headers -Wshadow -Wmissing-declarations -Wpacked -Winline -Werror -pedantic" ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes"], [5],[ - ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing=2 -Wsystem-headers -Wshadow -Wmissing-declarations -Wpacked -Wredundant-decls -Winline -Werror -Wfatal-errors -pedantic -pedantic-errors" + ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wno-expansion-to-defined -Wformat -Wstrict-aliasing=2 -Wsystem-headers -Wshadow -Wmissing-declarations -Wpacked -Wredundant-decls -Winline -Werror -Wfatal-errors -pedantic -pedantic-errors" ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes"] ) -- 2.17.1 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public