aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/ethercat/packet-ecatmb.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@zing.org>2015-02-15 10:25:17 -0800
committerGerald Combs <gerald@wireshark.org>2015-02-15 19:44:14 +0000
commitad6d259e1e709cc1654c9c134553e95075c9ac2f (patch)
treef2e7050a85c5c8bd08137b43cf25bf5cfd7eb7e8 /plugins/ethercat/packet-ecatmb.h
parentbfde04b845485c5ebf0a9bed15392cf9f0c47374 (diff)
EtherCAT: Suppress pedantic warnings.
Try to suppress warning: type of bit-field 'foo' is a GCC extension [-Wpedantic] Change-Id: If161a509db2d6aaad3bb656318902f0bc7b0d0a9 Reviewed-on: https://code.wireshark.org/review/7136 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'plugins/ethercat/packet-ecatmb.h')
-rw-r--r--plugins/ethercat/packet-ecatmb.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/ethercat/packet-ecatmb.h b/plugins/ethercat/packet-ecatmb.h
index 8b9accc631..6143c01dce 100644
--- a/plugins/ethercat/packet-ecatmb.h
+++ b/plugins/ethercat/packet-ecatmb.h
@@ -23,6 +23,9 @@
#ifndef _PACKET_ECATMAILBOX_H_
#define _PACKET_ECATMAILBOX_H_
+#include <wsutil/ws_diag_control.h>
+DIAG_OFF(pedantic)
+
/* Ensure the same data layout for all platforms */
typedef struct TETHERNET_ADDRESS
@@ -109,7 +112,6 @@ typedef union tEoeMacFilterOptionsUnion
guint16 Options;
} EoeMacFilterOptionsUnion;
-
typedef struct TETHERCAT_EOE_MACFILTER
{
EoeMacFilterOptionsUnion anEoeMacFilterOptionsUnion;
@@ -477,4 +479,5 @@ typedef struct TETHERCAT_SOE_HEADER
extern void init_mbx_header(PETHERCAT_MBOX_HEADER pMbox, tvbuff_t *tvb, gint offset);
-#endif
+DIAG_ON(pedantic)
+#endif /* _PACKET_ECATMAILBOX_H_ */