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:
Mark de Wever 2013-10-06 17:26:37 +02:00
parent c4f48eae9b
commit 05ad49a955
2 changed files with 8 additions and 0 deletions

View File

@ -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.

View File

@ -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: