Browse Source

mbedtls: fix building with GCC 15.1

Disable -Wunterminated-string-initialization for now.

Signed-off-by: Rui Salvaterra <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/18600
Signed-off-by: Robert Marko <[email protected]>
Rui Salvaterra 8 months ago
parent
commit
e595214030
1 changed files with 2 additions and 2 deletions
  1. 2 2
      package/libs/mbedtls/Makefile

+ 2 - 2
package/libs/mbedtls/Makefile

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mbedtls
 PKG_VERSION:=3.6.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_BUILD_FLAGS:=no-mips16 gc-sections no-lto
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
@@ -129,7 +129,7 @@ This package contains mbedtls helper programs for private key and
 CSR generation (gen_key, cert_req)
 endef
 
-TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS))
+TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) -Wno-unterminated-string-initialization
 
 CMAKE_OPTIONS += \
 	-DCMAKE_POSITION_INDEPENDENT_CODE=ON \