Skip to contentSkip to conversation

Revert "build: disable gcc 10 zero-length-bounds warning"

PATCH Applied Stephen Hemminger 5 participants 5 messages Oct 11, 2024 – Oct 17, 2024 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "build: disable gcc 10 zero-length-bounds warning"

The zero length array warning can be re-enabled. The zero length marker fields are now removed by commit 9e152e674c77 ("mbuf: remove marker fields") in DPDK 24.03.

This reverts commit cfacbcb5a23bc26cb913528c372adddabbb33ca1.

---
 config/meson.build | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
config/meson.build +1 -4
index 8c8b019c25..38f25f9ce3 100644
@@ -330,10 +330,7 @@ warning_flags = [
         '-Wno-packed-not-aligned',
         '-Wno-missing-field-initializers',
 ]
-if cc.get_id() == 'gcc' and cc.version().version_compare('>=10.0')
-# FIXME: Bugzilla 396
-    warning_flags += '-Wno-zero-length-bounds'
-endif
+
 if not dpdk_conf.get('RTE_ARCH_64')
 # for 32-bit, don't warn about casting a 32-bit pointer to 64-bit int - it's fine!!
     warning_flags += '-Wno-pointer-to-int-cast'
Signature · 1 line
2.45.2
Acked-by on v1 1/1
#4 lore raw
In reply to Stephen Hemminger
Quoted 5 lines · Stephen Hemminger

The zero length array warning can be re-enabled. The zero length marker fields are now removed by commit 9e152e674c77 ("mbuf: remove marker fields") in DPDK 24.03.

Quoted 7 lines

This reverts commit cfacbcb5a23bc26cb913528c372adddabbb33ca1.

---
 config/meson.build | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)