bit7z: workaround array-bounds warnings with GCC 16
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
Signed-off-by Hemanth Kumar M D <[email protected]>
--- 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
@@ -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