added -Wno-unused-but-set-variable, which hides a new warning in gcc 4.6 which only...
authorPerttu Ahola <celeron55@gmail.com>
Mon, 16 May 2011 17:40:19 +0000 (20:40 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Mon, 16 May 2011 17:40:19 +0000 (20:40 +0300)
src/CMakeLists.txt

index 42260b3ae439d3fc402e4471eef2be3eadf7898e..74396cee98f4bcd6b0843ff31d4d36923af9aa01 100644 (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")