From 931d1857ce94b96c26468ce692454fcda8546875 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Wed, 25 Oct 2017 16:13:35 +0200 Subject: [PATCH] Disable some Windows specific compiler warnings The -Wno-pedantic-ms-format option is only needed for the MinGW target. But for some reason, the AX_APPEND_COMPILE_FLAGS macro enables the option for all other GCC targets too. But during compilation GCC outputs the warning "unrecognized command line option". --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 9ca814b..c1e126d 100644 --- a/configure.ac +++ b/configure.ac @@ -188,6 +188,11 @@ AX_APPEND_COMPILE_FLAGS([ \ -Wno-unused-parameter \ ]) +# Windows specific compiler options. +AS_IF([test "$os_win32" = "yes"], [ + AX_APPEND_COMPILE_FLAGS([-Wno-pedantic-ms-format]) +]) + # Versioning. AC_SUBST([DC_VERSION],[dc_version]) AC_SUBST([DC_VERSION_MAJOR],[dc_version_major])