From 1fe7e6d2d7dba6fbbe22635a9ec4e348da83932c Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Fri, 24 Jan 2020 15:37:55 +0000 Subject: [PATCH] build: remove some icc warnings While icc builds without the "werror" setting build successfully, there are a lot of warnings. To make the output cleaner, and to allow building with warnings enabled, we can add a list of warning ids to ignore. Signed-off-by: Bruce Richardson --- config/meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/meson.build b/config/meson.build index 28a57f56fc..6c46767e3e 100644 --- a/config/meson.build +++ b/config/meson.build @@ -197,6 +197,12 @@ 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' endif +if cc.get_id() == 'intel' + warning_ids = [188, 2203, 2279, 2557, 3179, 3656] + foreach i:warning_ids + warning_flags += '-diag-disable=@0@'.format(i) + endforeach +endif foreach arg: warning_flags if cc.has_argument(arg) add_project_arguments(arg, language: 'c')