Skip to contentSkip to conversation

bit7z: workaround array-bounds warnings with GCC 16

PATCH New [email protected] 1 participant 1 message Jun 11

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bit7z: workaround array-bounds warnings with GCC 16

From: Hemanth Kumar M D <[email protected]>

GCC 16 reports -Warray-bounds warnings which are treated as errors.

Reported upstream: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125743

---
 meta-oe/recipes-extended/7zip/bit7z_4.0.12.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-extended/7zip/bit7z_4.0.12.bb +2 -0
index 300d9bc3cc..31202d0ea2 100644
@@ -34,6 +34,8 @@ DEPENDS = "7zip"
 
 EXTRA_OECMAKE += "-DBIT7Z_CUSTOM_7ZIP_PATH=${STAGING_INCDIR}/7zip"
 
+CXXFLAGS:append = " -Wno-error=array-bounds"
+
 PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
 PACKAGECONFIG[tests] = " \
     -DBIT7Z_BUILD_TESTS=ON -DBIT7Z_DISABLE_USE_STD_FILESYSTEM=ON \
Signature · 1 line
2.49.0