fix(mbedtls): suppress -Wunterminated-string-initialization

This commit is contained in:
Alexey Lapshin
2025-05-01 11:05:38 +07:00
parent 1a464c0914
commit 74e26f8d29

View File

@@ -347,6 +347,11 @@ foreach(target ${mbedtls_targets})
endif() endif()
endforeach() endforeach()
if(CMAKE_C_COMPILER_ID MATCHES "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER 15.0)
target_compile_options(mbedtls PRIVATE "-Wno-unterminated-string-initialization")
endif()
if(CONFIG_MBEDTLS_DYNAMIC_BUFFER) if(CONFIG_MBEDTLS_DYNAMIC_BUFFER)
set(WRAP_FUNCTIONS set(WRAP_FUNCTIONS
mbedtls_ssl_write_client_hello mbedtls_ssl_write_client_hello