fix(ble): won't add -Wno-unterminated-string-initialization for clang

This commit is contained in:
ShenWeilong
2026-05-26 17:07:46 +08:00
parent 3dd06b7abe
commit d1930f9d45
+1 -2
View File
@@ -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()