mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 21:21:16 +00:00
Adds -Wno-deprecated-register compiler flag.
This flag is used on strict compilation to avoid warnings regarding the register keyword being used. It is used in several system headers and the upcomming Clang 3.4 warns about it.
This commit is contained in:
parent
c4f48eae9b
commit
05ad49a955
@ -302,6 +302,13 @@ if(NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||
)
|
||||
endif(NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||
|
||||
check_compiler_has_flag(
|
||||
CXX_FLAGS_STRICT_COMPILATION
|
||||
"-Wdeprecated-register"
|
||||
HAS_COMPILER_FLAG_WDEPRECATED_REGISTER
|
||||
"-Wno-deprecated-register"
|
||||
)
|
||||
|
||||
|
||||
### Set pedantic compiler flags.
|
||||
|
||||
|
@ -117,6 +117,7 @@ Version 1.11.6+dev:
|
||||
* Fixed runtime error due to mismatched function call conventions in
|
||||
set_preferences_dir() when built with MSVC++ 2010 and a relative path
|
||||
to My Documents was passed with --config-dir in the command line.
|
||||
* Changed: Added -Wno-deprecated-register to strict compilation.
|
||||
|
||||
Version 1.11.6:
|
||||
* Add-ons client:
|
||||
|
Loading…
x
Reference in New Issue
Block a user