Treat enum missmatches as warnings for now as there is such a large number of them.

master
Tycho 2014-03-09 10:41:53 -07:00
parent 676dcfd1c7
commit 713c59b60b
1 changed files with 1 additions and 1 deletions

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-unused-parameter -Wno-error=switch")
add_flags_cxx("-Wall -Wextra -Werror -Wno-unused-parameter -Wno-error=switch -Wno-error=enum-compare")
# we support non-IEEE 754 fpus so can make no guarentees about error
add_flags_cxx("-ffast-math")