meta-dpdk/recipes-extended/dpdk-dev-libibverbs/files/init_c.patch
Saul Wold 67149d869e Removal of meta-intel content to make meta-dpdk standalone
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-26 08:35:13 -07:00

24 lines
460 B
Diff

dpdk-dev-libibverbs: suppress gcc7 warnings
We know that format-truncation in init.c is okay.
Upstream-Status: Pending
Signed-off-by: Joe Slater <joe.slater@windriver.com>
--- 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 <config.h>
#endif /* HAVE_CONFIG_H */