mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00: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:
parent
bc59c18503
commit
5624dac3b7
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue