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".
This commit is contained in:
Jef Driesen 2017-10-25 16:13:35 +02:00
parent 90eed3c790
commit 931d1857ce

View File

@ -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])