mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
fix(ble): won't add -Wno-unterminated-string-initialization for clang
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user