These tests may test format flags that aren't recognized; don't warn about that.
Many tests (in particular, the complex math tests) define functions without a previous declaration - don't warn about that either. (The -Wno-missing-prototypes option is only relevant for C, not C++.) Don't warn about unused parameters like argc/argv. Also don't warn about unused functions in tests. Signed-off-by: Martin Storsjö <[email protected]> --- mingw-w64-crt/testcases/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mingw-w64-crt/testcases/Makefile.am b/mingw-w64-crt/testcases/Makefile.am index 7a60dd580..a387ef3e1 100644 --- a/mingw-w64-crt/testcases/Makefile.am +++ b/mingw-w64-crt/testcases/Makefile.am @@ -1,5 +1,6 @@ -AM_CFLAGS=@ADD_C_CXX_WARNING_FLAGS@ @ADD_C_ONLY_WARNING_FLAGS@ -AM_CXXFLAGS=@ADD_C_CXX_WARNING_FLAGS@ @ADD_CXX_ONLY_WARNING_FLAGS@ +TEST_CFLAGS=-Wno-format -Wno-unused-parameter -Wno-error=unused-function +AM_CFLAGS=@ADD_C_CXX_WARNING_FLAGS@ @ADD_C_ONLY_WARNING_FLAGS@ $(TEST_CFLAGS) -Wno-missing-prototypes +AM_CXXFLAGS=@ADD_C_CXX_WARNING_FLAGS@ @ADD_CXX_ONLY_WARNING_FLAGS@ $(TEST_CFLAGS) # Testsuite options # -- 2.43.0 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
