From: Perttu Ahola Date: Mon, 16 May 2011 17:40:19 +0000 (+0300) Subject: added -Wno-unused-but-set-variable, which hides a new warning in gcc 4.6 which only... X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=5624dac3b78e4c1113aaecf05da645f2ab55c98d;p=zefram%2Fminetest%2Fminetest_engine.git 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. --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 42260b3a..74396cee 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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")