diff --git a/lib/opus/CMakeLists.txt b/lib/opus/CMakeLists.txt index 9d824cdc..5c33c42d 100644 --- a/lib/opus/CMakeLists.txt +++ b/lib/opus/CMakeLists.txt @@ -356,6 +356,7 @@ if(OPUS_FIXED_POINT) add_sources_group(opus silk ${silk_sources_fixed}) target_include_directories(opus PRIVATE silk/fixed) target_compile_definitions(opus PRIVATE FIXED_POINT=1) + target_compile_options(opus PRIVATE -Wno-stringop-overflow) else() add_sources_group(opus silk ${silk_sources_float}) target_include_directories(opus PRIVATE silk/float) diff --git a/lib/opusfile/CMakeLists.txt b/lib/opusfile/CMakeLists.txt index f2c3776c..94d1af9e 100644 --- a/lib/opusfile/CMakeLists.txt +++ b/lib/opusfile/CMakeLists.txt @@ -5,7 +5,7 @@ idf_component_register( SRCS src/info.c src/internal.c src/internal.h src/opusfile.c src/stream.c INCLUDE_DIRS "include" REQUIRES "ogg") -target_compile_options("${COMPONENT_LIB}" PRIVATE "-DOP_FIXED_POINT") +target_compile_options("${COMPONENT_LIB}" PRIVATE "-DOP_FIXED_POINT" "-Wno-maybe-uninitialized") set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)