aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_packet_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux-generic/include/odp_packet_internal.h')
-rw-r--r--platform/linux-generic/include/odp_packet_internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h
index 497ea4aee..62f8aea25 100644
--- a/platform/linux-generic/include/odp_packet_internal.h
+++ b/platform/linux-generic/include/odp_packet_internal.h
@@ -73,6 +73,8 @@ typedef struct {
ODP_STATIC_ASSERT(PKT_MAX_SEGS < UINT16_MAX, "PACKET_MAX_SEGS_ERROR");
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wpedantic"
/**
* Internal Packet header
*
@@ -148,9 +150,10 @@ typedef struct odp_packet_hdr_t {
};
/* Packet data storage */
- uint8_t data[0];
+ uint8_t data[];
} odp_packet_hdr_t;
+#pragma GCC diagnostic pop
/* Packet header size is critical for performance. Ensure that it does not accidentally
* grow over 256 bytes when cache line size is 64 bytes (or less). With larger cache line sizes,