Removed explicit disabling of compiler warning,
...as the current codebase compiles fine with it.
This commit is contained in:
parent
eb9bc54e16
commit
e6ab1f0c1a
3 changed files with 3 additions and 3 deletions
|
@ -107,7 +107,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
|||
if(ENABLE_STRICT_COMPILATION)
|
||||
# The current networking code breaks strict aliasing in g++ 4.5.
|
||||
# Once the code is converted to boost::asio it might be reenabled.
|
||||
set(STRICT_FLAGS "-Werror -Wno-unused-parameter -Wno-strict-aliasing")
|
||||
set(STRICT_FLAGS "-Werror -Wno-strict-aliasing")
|
||||
else(ENABLE_STRICT_COMPILATION)
|
||||
set(STRICT_FLAGS "")
|
||||
endif(ENABLE_STRICT_COMPILATION)
|
||||
|
|
|
@ -373,7 +373,7 @@ for env in [test_env, client_env, env]:
|
|||
if env['strict']:
|
||||
# The current networking code breaks strict aliasing in g++ 4.5.
|
||||
# Once the code is converted to boost::asio it might be reenabled.
|
||||
env.AppendUnique(CCFLAGS = Split("-Werror -Wno-unused-parameter -Wno-strict-aliasing"))
|
||||
env.AppendUnique(CCFLAGS = Split("-Werror -Wno-strict-aliasing"))
|
||||
|
||||
env["OPT_FLAGS"] = "-O2"
|
||||
env["DEBUG_FLAGS"] = Split("-O0 -DDEBUG -ggdb3")
|
||||
|
|
|
@ -110,7 +110,7 @@ then
|
|||
|
||||
# The current networking code breaks strict aliasing in g++ 4.5.
|
||||
# Once the code is converted to boost::asio it might be reenabled.
|
||||
CXXFLAGS="-Werror -Wno-unused-parameter -Wno-strict-aliasing $CXXFLAGS"
|
||||
CXXFLAGS="-Werror -Wno-strict-aliasing $CXXFLAGS"
|
||||
fi
|
||||
|
||||
# Make tests default in svn version
|
||||
|
|
Loading…
Add table
Reference in a new issue