mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 17:33:17 +00:00
Disable a new GCC-4.8 warning.
If triggers in an external C header (png.h).
This commit is contained in:
parent
e87902c140
commit
3db07df42f
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user