numam-dpdk/config
Conor Walsh 654e893436 build: fix gcc warning requiring Wformat
On some CentOS/RHEL systems using gcc 8.3.1 to compile dpdk, gcc shows a
warning on every build step saying that -Wformat-nonliteral and
-Wformat-security warnings will be ignored unless -Wformat is
also specified as a compiler flag. When the build is run with -werror
the build will fail due to these warnings.

Exact warning returned:
cc1: error: -Wformat-nonliteral ignored without -Wformat
[-Werror=format-nonliteral]
cc1: error: -Wformat-security ignored without -Wformat
[-Werror=format-security]
cc1: all warnings being treated as errors

This patch adds the -Wformat flag to config/meson.build. The warning id
181 has also been suppressed in icc as icc was showing false positives
with -Wformat enabled.

Fixes: 524a0d5d66 ("build: enable extra warnings with meson")
Cc: stable@dpdk.org

Signed-off-by: Conor Walsh <conor.walsh@intel.com>
Tested-by: Lingli Chen <linglix.chen@intel.com>
2020-11-22 19:38:25 +01:00
..
arm net/sfc: support aarch64 architecture 2020-11-03 23:35:06 +01:00
ppc build: remove deprecated cpuflag macros 2020-09-25 11:13:57 +02:00
x86 acl: add infrastructure for AVX512 classify methods 2020-10-14 14:23:00 +02:00
meson.build build: fix gcc warning requiring Wformat 2020-11-22 19:38:25 +01:00
rte_compatibility_defines.h build: add defines for compatibility with make build 2020-10-19 22:12:28 +02:00
rte_config.h config: enable packet prefetching with Meson 2020-11-14 10:56:30 +01:00