mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 18:05:22 +02: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:
@@ -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")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user