From: <kkanas@marvell.com>
To: <dev@dpdk.org>, Thomas Monjalon <thomas@monjalon.net>
Cc: Krzysztof Kanas <kkanas@marvell.com>, <reshma.pattan@intel.com>
Subject: [dpdk-dev] [PATCH] mk: disable flag for no packet member warning
Date: Mon, 22 Jul 2019 14:39:59 +0200 [thread overview]
Message-ID: <20190722123959.29703-1-kkanas@marvell.com> (raw)
From: Krzysztof Kanas <kkanas@marvell.com>
gcc prior 9 don't will add additional warning for unrecognized command
line option, but only when there is some other warning in the code, e.g
unused variable.
Fixes: a385972c3675 ("mk: disable warning for packed member pointer")
Cc: reshma.pattan@intel.com
Signed-off-by: Krzysztof Kanas <kkanas@marvell.com>
---
mk/toolchain/gcc/rte.vars.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mk/toolchain/gcc/rte.vars.mk b/mk/toolchain/gcc/rte.vars.mk
index b852fcfd7e24..1bd384f7ca3f 100644
--- a/mk/toolchain/gcc/rte.vars.mk
+++ b/mk/toolchain/gcc/rte.vars.mk
@@ -88,7 +88,9 @@ WERROR_FLAGS += -Wno-format-truncation
endif
# disable packed member unalign warnings
+ifeq ($(shell test $(HOST_GCC_VERSION) -gt 90 && echo 1), 1)
WERROR_FLAGS += -Wno-address-of-packed-member
+endif
export CC AS AR LD OBJCOPY OBJDUMP STRIP READELF
export TOOLCHAIN_CFLAGS TOOLCHAIN_LDFLAGS TOOLCHAIN_ASFLAGS
--
2.21.0
next reply other threads:[~2019-07-22 12:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-22 12:39 kkanas [this message]
2019-07-22 13:44 ` Bruce Richardson
2019-07-23 9:05 ` [dpdk-dev] [EXT] " Krzysztof Kanas
2019-07-23 13:18 ` Bruce Richardson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190722123959.29703-1-kkanas@marvell.com \
--to=kkanas@marvell.com \
--cc=dev@dpdk.org \
--cc=reshma.pattan@intel.com \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).