squash pedantic warnings over flexible array members
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I134eb823a6860007f1bcfde0f40f6ca2c8bb36b2
diff --git a/ipmbdefines.hpp b/ipmbdefines.hpp
index ed7adb3..cce5859 100644
--- a/ipmbdefines.hpp
+++ b/ipmbdefines.hpp
@@ -18,6 +18,11 @@
#include <inttypes.h>
+// -Wpedantic doesn't like flexible array members in C++.
+// Disable it for this file.
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wpedantic"
+
#pragma pack(1)
typedef struct _IPMB_HEADER
{
@@ -67,4 +72,5 @@
IPMB_HEADER hdr;
} IPMB_PKT;
+#pragma GCC diagnostic pop
#endif