diff options
author | Joe Slater <jslater@windriver.com> | 2017-06-28 10:27:22 -0700 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2017-06-29 14:22:17 -0700 |
commit | d7cc11cba135ed5d9db82987744fefc137a8c8d4 (patch) | |
tree | f2e01c2ad3a0ea2e69e26e6911ab6f1279881178 /common/recipes-extended/dpdk-dev-libibverbs/files/init_c.patch | |
parent | cebe15d153ab982f80f3f86fea38a0978dfc1f28 (diff) | |
download | meta-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.patch | 23 |
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 @@ | |||
1 | dpdk-dev-libibverbs: suppress gcc7 warnings | ||
2 | |||
3 | We know that format-truncation in init.c is okay. | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | |||
7 | Signed-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 */ | ||