Skip to content

Commit

Permalink
[CMAKE] Silence warnings about unused variables on release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
tkreuzer committed Oct 25, 2024
1 parent a5c5c19 commit c9a99bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/cmake/gcc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ endif()
# FIXME: Revisit this to see if we even need these levels
if(CMAKE_BUILD_TYPE STREQUAL "Release")
add_compile_options(-O2 -DNDEBUG=)
add_compile_options(-Wno-unused-variable)
add_compile_options(-Wno-unused-but-set-variable)
else()
if(OPTIMIZE STREQUAL "1")
add_compile_options(-Os)
Expand Down

0 comments on commit c9a99bf

Please sign in to comment.