aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-05-16 20:40:19 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-05-16 20:40:19 +0300
commit5624dac3b78e4c1113aaecf05da645f2ab55c98d (patch)
tree831d0d05b37690a399184b00ba03846aac7d7760 /src
parentbc59c185033c1d71d37da81261b72bd93f24e10c (diff)
downloadminetest-5624dac3b78e4c1113aaecf05da645f2ab55c98d.tar.gz
minetest-5624dac3b78e4c1113aaecf05da645f2ab55c98d.tar.bz2
minetest-5624dac3b78e4c1113aaecf05da645f2ab55c98d.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 42260b3ae..74396cee9 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")