From d71535fd2de862309a7cee063e3f7b4800d1d96f Mon Sep 17 00:00:00 2001 From: ShenWeilong Date: Tue, 26 May 2026 17:07:46 +0800 Subject: [PATCH] fix(ble): won't add -Wno-unterminated-string-initialization for clang --- components/bt/host/bluedroid/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/bt/host/bluedroid/CMakeLists.txt b/components/bt/host/bluedroid/CMakeLists.txt index 71d11c671d6..0148e315864 100644 --- a/components/bt/host/bluedroid/CMakeLists.txt +++ b/components/bt/host/bluedroid/CMakeLists.txt @@ -22,8 +22,7 @@ function(set_bluedroid_host_compile_flags) PROPERTIES COMPILE_FLAGS "${jump_table_opts}") endif() - if((CMAKE_C_COMPILER_ID MATCHES "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER 15.0) OR - CMAKE_C_COMPILER_ID MATCHES "Clang") + if(CMAKE_C_COMPILER_ID MATCHES "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER 15.0) set_source_files_properties("${CMAKE_CURRENT_FUNCTION_LIST_DIR}/device/controller.c" PROPERTIES COMPILE_FLAGS "-Wno-unterminated-string-initialization") endif()