diff options
author | Gerald Combs <gerald@zing.org> | 2015-02-15 10:25:17 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-02-15 19:44:14 +0000 |
commit | ad6d259e1e709cc1654c9c134553e95075c9ac2f (patch) | |
tree | f2e7050a85c5c8bd08137b43cf25bf5cfd7eb7e8 /plugins/ethercat/packet-ethercat-frame.h | |
parent | bfde04b845485c5ebf0a9bed15392cf9f0c47374 (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-ethercat-frame.h')
-rw-r--r-- | plugins/ethercat/packet-ethercat-frame.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/ethercat/packet-ethercat-frame.h b/plugins/ethercat/packet-ethercat-frame.h index 2bcdbe0a6a..885592022e 100644 --- a/plugins/ethercat/packet-ethercat-frame.h +++ b/plugins/ethercat/packet-ethercat-frame.h @@ -23,7 +23,10 @@ #ifndef _PACKET_ETHERCAT_FRAME_H #define _PACKET_ETHERCAT_FRAME_H +#include <wsutil/ws_diag_control.h> + /* structure for decoding the header -----------------------------------------*/ +DIAG_OFF(pedantic) typedef union _EtherCATFrameParser { struct @@ -34,8 +37,9 @@ typedef union _EtherCATFrameParser } v; guint16 hdr; } EtherCATFrameParserHDR; +DIAG_ON(pedantic) typedef EtherCATFrameParserHDR *PEtherCATFrameParserHDR; #define EtherCATFrameParserHDR_Len (int)sizeof(EtherCATFrameParserHDR) -#endif +#endif /* _PACKET_ETHERCAT_FRAME_H */ |