diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-06-02 02:59:30 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-06-02 02:59:30 +0300 |
commit | fd64dd5e20af855f68072ca888a1362d776de197 (patch) | |
tree | 70af3d0e18cfe69fc2a903b9a4fbe98649db37f5 | |
parent | ccae5a49ad55a7c70d3977af33f5ce413abe94df (diff) | |
download | minetest-fd64dd5e20af855f68072ca888a1362d776de197.tar.gz minetest-fd64dd5e20af855f68072ca888a1362d776de197.tar.bz2 minetest-fd64dd5e20af855f68072ca888a1362d776de197.zip |
added -Wno-unused-but-set-variable to debug build
-rw-r--r-- | src/CMakeLists.txt | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f912f68cd..367b38818 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -170,15 +170,13 @@ else() # Probably GCC if(WARN_ALL) - set(WARNING_FLAGS "-Wall") + set(RELEASE_WARNING_FLAGS "-Wall") else() - set(WARNING_FLAGS "") + set(RELEASE_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") + set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG ${RELEASE_WARNING_FLAGS} -Wno-unused-but-set-variable -O3 -ffast-math -Wall -fomit-frame-pointer -pipe -funroll-loops") + set(CMAKE_CXX_FLAGS_DEBUG "-g -O1 -Wall -Wno-unused-but-set-variable") if(USE_GPROF) set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -pg") |