Add -Wno-strict-aliasing to compiler flags.

This reverts 2011-07-24T15:10:34Z!crazy-ivanovic@gmx.net, 
since it breaks building the unit tests with g++ 4.4.
This commit is contained in:
Mark de Wever 2011-08-15 05:26:14 +00:00
parent d3740f939e
commit 76a112eaa8
2 changed files with 3 additions and 1 deletions

View file

@ -113,7 +113,8 @@ if(CMAKE_COMPILER_IS_GNUCXX)
if(NOT CONFIGURED)
if(ENABLE_STRICT_COMPILATION)
set(STRICT_FLAGS "-Werror")
# The current unit test code breaks strict aliasing with g++ 4.4.
set(STRICT_FLAGS "-Werror -Wno-strict-aliasing")
else(ENABLE_STRICT_COMPILATION)
set(STRICT_FLAGS "")
endif(ENABLE_STRICT_COMPILATION)

View file

@ -110,6 +110,7 @@ Version 1.9.8+svn:
* Teach wmllint to fix deprecated implicit side=1 in [store_gold], [gold]
[remove_shroud], [place_shroud], [modify_side], [modify_ai] actions
* Fixed bug #17150: fix naming confict with OpenBSD macro by renaming
* Added "-Wno-strict-aliasing" to the default compiler flags.
Version 1.9.8:
* Campaigns: