diff options
Diffstat (limited to 'recipes-extended/dpdk-dev-libibverbs/files/init_c.patch')
-rw-r--r-- | recipes-extended/dpdk-dev-libibverbs/files/init_c.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-extended/dpdk-dev-libibverbs/files/init_c.patch b/recipes-extended/dpdk-dev-libibverbs/files/init_c.patch new file mode 100644 index 0000000..a7708d7 --- /dev/null +++ b/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 */ | ||