X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=mk%2Ftoolchain%2Fgcc%2Frte.vars.mk;h=928f0e0830a1a533f366d0c7790f6ad8d8283ca6;hb=2aba9fc7253454fa12edb6b38feeb8b07b9f2fe3;hp=9fc704193bae801ed2952d1e3c43d6060eae0d24;hpb=098cc0fea3be3094a5f0691d1ae501c83fe0d687;p=dpdk.git diff --git a/mk/toolchain/gcc/rte.vars.mk b/mk/toolchain/gcc/rte.vars.mk index 9fc704193b..928f0e0830 100644 --- a/mk/toolchain/gcc/rte.vars.mk +++ b/mk/toolchain/gcc/rte.vars.mk @@ -74,15 +74,18 @@ WERROR_FLAGS += -Wno-lto-type-mismatch endif endif -# workaround GCC bug with warning "missing initializer" for "= {0}" -ifeq ($(shell test $(GCC_VERSION) -lt 47 && echo 1), 1) +# disable warning for non-initialised fields WERROR_FLAGS += -Wno-missing-field-initializers -endif # workaround GCC bug with warning "may be used uninitialized" ifeq ($(shell test $(GCC_VERSION) -lt 47 && echo 1), 1) WERROR_FLAGS += -Wno-uninitialized endif +ifeq ($(shell test $(GCC_VERSION) -ge 100 && echo 1), 1) +# FIXME: Bugzilla 396 +WERROR_FLAGS += -Wno-zero-length-bounds +endif + HOST_WERROR_FLAGS := $(WERROR_FLAGS) ifeq ($(shell test $(HOST_GCC_VERSION) -gt 70 && echo 1), 1)