From 25c2df57dd5024c26a396ddabd0391f90999dd7c Mon Sep 17 00:00:00 2001 From: jacqueline Date: Mon, 4 Sep 2023 09:51:38 +1000 Subject: [PATCH] Fix some release build warnings --- lib/opus/CMakeLists.txt | 1 + lib/opusfile/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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)