added -Wno-unused-but-set-variable, which hides a new warning in gcc 4.6 which only slows down development with no effect on security or anything.

This commit is contained in:
Perttu Ahola 2011-05-16 20:40:19 +03:00
parent bc59c18503
commit 5624dac3b7
1 changed files with 2 additions and 0 deletions

View File

@ -171,6 +171,8 @@ else()
set(WARNING_FLAGS "")
endif()
set(WARNING_FLAGS "${WARNING_FLAGS} -Wno-unused-but-set-variable")
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG ${WARNING_FLAGS} -O3 -ffast-math -Wall -fomit-frame-pointer -pipe -funroll-loops")
set(CMAKE_CXX_FLAGS_DEBUG "-g -O1 -Wall")