summaryrefslogtreecommitdiffstats
path: root/common/recipes-extended/dpdk-dev-libibverbs/files/init_c.patch
diff options
context:
space:
mode:
authorJoe Slater <jslater@windriver.com>2017-06-28 10:27:22 -0700
committerSaul Wold <sgw@linux.intel.com>2017-06-29 14:22:17 -0700
commitd7cc11cba135ed5d9db82987744fefc137a8c8d4 (patch)
treef2e01c2ad3a0ea2e69e26e6911ab6f1279881178 /common/recipes-extended/dpdk-dev-libibverbs/files/init_c.patch
parentcebe15d153ab982f80f3f86fea38a0978dfc1f28 (diff)
downloadmeta-intel-d7cc11cba135ed5d9db82987744fefc137a8c8d4.tar.gz
dpdk-dev-libibverbs: suppress gcc7 warnings
Ignore -Wformat-truncation in init.c. Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'common/recipes-extended/dpdk-dev-libibverbs/files/init_c.patch')
-rw-r--r--common/recipes-extended/dpdk-dev-libibverbs/files/init_c.patch23
1 files changed, 23 insertions, 0 deletions
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 @@
1dpdk-dev-libibverbs: suppress gcc7 warnings
2
3We know that format-truncation in init.c is okay.
4
5Upstream-Status: Pending
6
7Signed-off-by: Joe Slater <joe.slater@windriver.com>
8
9
10--- a/src/init.c
11+++ b/src/init.c
12@@ -31,6 +31,11 @@
13 * SOFTWARE.
14 */
15
16+/* For this file we know we can ignore this warning. */
17+#if __GNUC__ > 6
18+#pragma GCC diagnostic ignored "-Wformat-truncation"
19+#endif
20+
21 #if HAVE_CONFIG_H
22 # include <config.h>
23 #endif /* HAVE_CONFIG_H */