1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-04 16:35:03 -05:00

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

View File

@ -171,6 +171,8 @@ else()
set(WARNING_FLAGS "") set(WARNING_FLAGS "")
endif() 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_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_DEBUG "-g -O1 -Wall")