aboutsummaryrefslogtreecommitdiffstats
path: root/lib/includes/hicn/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/includes/hicn/common.h')
-rw-r--r--lib/includes/hicn/common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/includes/hicn/common.h b/lib/includes/hicn/common.h
index 6904c6314..a5ca2878b 100644
--- a/lib/includes/hicn/common.h
+++ b/lib/includes/hicn/common.h
@@ -143,8 +143,17 @@ struct iovec
#include <vnet/ip/ip4_packet.h> // ip4_address_t
#include <vnet/ip/ip6_packet.h> // ip6_address_t
+
+#if __GNUC__ >= 9
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
+
#include <vnet/ip/ip46_address.h>
+#if __GNUC__ >= 9
+#pragma GCC diagnostic pop
+#endif
+
#else