mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
Merge branch 'feature/update-esp-clang-to-esp-21.1.3_20260304' into 'master'
feat(tools): update esp-clang version to esp-21.1.3_20260408 Closes IDF-14965, LLVM-501, and LLVM-531 See merge request espressif/esp-idf!46361
This commit is contained in:
@@ -275,7 +275,8 @@ if(LOG_COMPRESSED_MODULE)
|
||||
"${jump_table_opts}")
|
||||
endif()
|
||||
|
||||
if(CMAKE_C_COMPILER_ID MATCHES "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER 15.0)
|
||||
if((CMAKE_C_COMPILER_ID MATCHES "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER 15.0) OR
|
||||
CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||
set(files_with_compile_flags "host/bluedroid/device/controller.c")
|
||||
add_flags_if_in_list("${src}"
|
||||
"${files_with_compile_flags}"
|
||||
|
||||
@@ -64,7 +64,7 @@ int tc_hmac_set_key(TCHmacState_t ctx, const uint8_t *key,
|
||||
return TC_CRYPTO_FAIL;
|
||||
}
|
||||
|
||||
const uint8_t dummy_key[key_size];
|
||||
uint8_t dummy_key[key_size];
|
||||
struct tc_hmac_state_struct dummy_state;
|
||||
|
||||
if (key_size <= TC_SHA256_BLOCK_SIZE) {
|
||||
@@ -76,6 +76,7 @@ int tc_hmac_set_key(TCHmacState_t ctx, const uint8_t *key,
|
||||
* consumed in this process.
|
||||
*/
|
||||
(void)tc_sha256_init(&dummy_state.hash_state);
|
||||
_set(dummy_key, 0, sizeof(dummy_key));
|
||||
(void)tc_sha256_update(&dummy_state.hash_state,
|
||||
dummy_key,
|
||||
key_size);
|
||||
|
||||
@@ -22,7 +22,8 @@ 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)
|
||||
if((CMAKE_C_COMPILER_ID MATCHES "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER 15.0) OR
|
||||
CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||
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