From d7cc11cba135ed5d9db82987744fefc137a8c8d4 Mon Sep 17 00:00:00 2001 From: Joe Slater Date: Wed, 28 Jun 2017 10:27:22 -0700 Subject: dpdk-dev-libibverbs: suppress gcc7 warnings Ignore -Wformat-truncation in init.c. Signed-off-by: Joe Slater Signed-off-by: Saul Wold --- .../dpdk-dev-libibverbs_1.2.1-3.4-2.0.0.0.bb | 4 +++- .../dpdk-dev-libibverbs/files/init_c.patch | 23 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 common/recipes-extended/dpdk-dev-libibverbs/files/init_c.patch (limited to 'common/recipes-extended') diff --git a/common/recipes-extended/dpdk-dev-libibverbs/dpdk-dev-libibverbs_1.2.1-3.4-2.0.0.0.bb b/common/recipes-extended/dpdk-dev-libibverbs/dpdk-dev-libibverbs_1.2.1-3.4-2.0.0.0.bb index 32363bbc..5636d8fa 100644 --- a/common/recipes-extended/dpdk-dev-libibverbs/dpdk-dev-libibverbs_1.2.1-3.4-2.0.0.0.bb +++ b/common/recipes-extended/dpdk-dev-libibverbs/dpdk-dev-libibverbs_1.2.1-3.4-2.0.0.0.bb @@ -3,7 +3,9 @@ HOMEPAGE = "https://github.com/Mellanox/dpdk-dev-libibverbs" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=7c557f27dd795ba77cc419dddc656b51" -SRC_URI = "https://github.com/Mellanox/dpdk-dev-libibverbs/archive/libibverbs-${PV}.tar.gz;name=${PN}" +SRC_URI = "https://github.com/Mellanox/dpdk-dev-libibverbs/archive/libibverbs-${PV}.tar.gz;name=${PN} \ + file://init_c.patch \ + " SRC_URI[dpdk-dev-libibverbs.md5sum] = "65234ee278eb437a7069326f37cd4d86" SRC_URI[dpdk-dev-libibverbs.sha256sum] = "a6471515556cb8d10ad471bb7efb8cf760b248a28aceb57d4534d50d572f56cd" diff --git a/common/recipes-extended/dpdk-dev-libibverbs/files/init_c.patch b/common/recipes-extended/dpdk-dev-libibverbs/files/init_c.patch new file mode 100644 index 00000000..a7708d7c --- /dev/null +++ b/common/recipes-extended/dpdk-dev-libibverbs/files/init_c.patch @@ -0,0 +1,23 @@ +dpdk-dev-libibverbs: suppress gcc7 warnings + +We know that format-truncation in init.c is okay. + +Upstream-Status: Pending + +Signed-off-by: Joe Slater + + +--- a/src/init.c ++++ b/src/init.c +@@ -31,6 +31,11 @@ + * SOFTWARE. + */ + ++/* For this file we know we can ignore this warning. */ ++#if __GNUC__ > 6 ++#pragma GCC diagnostic ignored "-Wformat-truncation" ++#endif ++ + #if HAVE_CONFIG_H + # include + #endif /* HAVE_CONFIG_H */ -- cgit v1.2.3-54-g00ecf