Skip to contentSkip to conversation

openocd: disable werror when building with gcc

PATCH New Khem Raj 1 participant 1 message Sep 9, 2019

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 openocd: disable werror when building with gcc

gcc 9.x warns more

TOPDIR/build/tmp/work/mips32r2-yoe-linux/openocd/0.10+gitrAUTOINC+7ee618692f-r0/recipe-sysroot/usr/include/bits/string_fortified.h:71:10: error: '__builtin_memset' offset [509, 512] from the object at 'buff' is out of the bounds of referenced subobject 'reserved7' with type 'mg_io_uint8[186]' {aka 'unsigned char[186]'} at offset 322 [-Werror=array-bounds]
| return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---
 meta-oe/recipes-devtools/openocd/openocd_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/openocd/openocd_git.bb +1 -1
index df10177ae9..ab2fd7f721 100644
@@ -27,7 +27,7 @@ inherit pkgconfig autotools-brokensep gettext
 BBCLASSEXTEND += "nativesdk"
 
 EXTRA_OECONF = "--enable-ftdi --disable-doxygen-html"
-
+EXTRA_OECONF_append_toolchain-gcc = " --disable-werror "
 do_configure() {
     ./bootstrap nosubmodule
     install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/jimtcl/autosetup
Signature · 1 line
2.23.0