Skip to content

Commit c9a99bf

Browse files
committed
[CMAKE] Silence warnings about unused variables on release builds
1 parent a5c5c19 commit c9a99bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdk/cmake/gcc.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ endif()
142142
# FIXME: Revisit this to see if we even need these levels
143143
if(CMAKE_BUILD_TYPE STREQUAL "Release")
144144
add_compile_options(-O2 -DNDEBUG=)
145+
add_compile_options(-Wno-unused-variable)
146+
add_compile_options(-Wno-unused-but-set-variable)
145147
else()
146148
if(OPTIMIZE STREQUAL "1")
147149
add_compile_options(-Os)

0 commit comments

Comments
 (0)