1
0

Turned off Wunused-parameter

This commit is contained in:
Tycho 2014-03-09 04:37:36 -07:00
parent 38ba8684f8
commit b4e3d0aa4e

View File

@ -182,7 +182,7 @@ macro(set_exe_flags)
string(REPLACE "-w" "" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
string(REPLACE "-w" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
string(REPLACE "-w" "" CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
add_flags_cxx("-Wall -Wextra -Werror -Wno-error=unused-parameter -Wno-error=switch")
add_flags_cxx("-Wall -Wextra -Werror -Wno-unused-parameter -Wno-error=switch")
# we support non-IEEE 754 fpus so can make no guarentees about error
add_flags_cxx("-ffast-math")