diff --git a/sdk/cmake/gcc.cmake b/sdk/cmake/gcc.cmake index dd8753ba060..860594ef38d 100644 --- a/sdk/cmake/gcc.cmake +++ b/sdk/cmake/gcc.cmake @@ -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)