mirror of
https://github.com/reactos/reactos.git
synced 2024-11-01 04:11:30 +00:00
[CMAKE] Silence warnings about unused variables on release builds
This commit is contained in:
parent
a5c5c19bcf
commit
c9a99bf63a
|
@ -142,6 +142,8 @@ endif()
|
||||||
# FIXME: Revisit this to see if we even need these levels
|
# FIXME: Revisit this to see if we even need these levels
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||||
add_compile_options(-O2 -DNDEBUG=)
|
add_compile_options(-O2 -DNDEBUG=)
|
||||||
|
add_compile_options(-Wno-unused-variable)
|
||||||
|
add_compile_options(-Wno-unused-but-set-variable)
|
||||||
else()
|
else()
|
||||||
if(OPTIMIZE STREQUAL "1")
|
if(OPTIMIZE STREQUAL "1")
|
||||||
add_compile_options(-Os)
|
add_compile_options(-Os)
|
||||||
|
|
Loading…
Reference in a new issue