Disable a new GCC-4.8 warning.

If triggers in an external C header (png.h).
This commit is contained in:
Mark de Wever 2012-07-03 19:16:33 +00:00
parent e87902c140
commit 3db07df42f

View File

@ -160,6 +160,13 @@ if(CMAKE_COMPILER_IS_GNUCXX OR UNIX)
HAS_COMPILER_FLAG_WUNUSED_LOCAL_TYPEDEFS
"-Wno-unused-local-typedefs")
# This flag is/will be added in gcc-4.8 and fails with png in C++11 mode
check_compiler_has_flag(
STRICT_FLAGS
"-Wliteral-suffix"
HAS_COMPILER_FLAG_WLITERAL_SUFFIX
"-Wno-literal-suffix")
# This flag is needed for Clang to silence its complains about
# unused command line arguments.
check_compiler_has_flag(