From b4045ba7c333a1b143bcaa2a17e6c804c0b64158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Wed, 3 Sep 2014 08:49:54 +0200 Subject: [PATCH] Fix unused variable... [-Werror,-Wunused-const-variable] Use DATA_FRAG_FLAGS, disabled unused NACK_FLAGS Change-Id: I2d3dda2c3ab1ebbd66e32bf5ec1b62b521a7140d Reviewed-on: https://code.wireshark.org/review/3968 Reviewed-by: Alexis La Goutte --- epan/dissectors/packet-rtps.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/epan/dissectors/packet-rtps.c b/epan/dissectors/packet-rtps.c index 38b2d2877e..cdca4183f6 100644 --- a/epan/dissectors/packet-rtps.c +++ b/epan/dissectors/packet-rtps.c @@ -1051,6 +1051,7 @@ static const struct Flag_definition DATA_FRAG_FLAGS[] = { { 'Q', "Inline QoS" }, /* Bit 1 */ { 'E', "Endianness bit" } /* Bit 0 */ }; +#if 0 /* Vendor specific: RTI */ static const struct Flag_definition NACK_FLAGS[] = { { RESERVEDFLAG_CHAR, RESERVEDFLAG_STRING }, /* Bit 7 */ @@ -1062,6 +1063,7 @@ static const struct Flag_definition NACK_FLAGS[] = { { 'F', "Final flag" }, /* Bit 1 */ { 'E', "Endianness bit" } /* Bit 0 */ }; +#endif /***************************************************************************/ @@ -5248,7 +5250,7 @@ static void dissect_DATA_FRAG(tvbuff_t *tvb, packet_info *pinfo, gint offset, gu proto_item* octet_item; guint32 wid; gboolean from_builtin_writer; - rtps_util_decode_flags(tree, tvb, offset + 1, flags, NOKEY_DATA_FRAG_FLAGS); + rtps_util_decode_flags(tree, tvb, offset + 1, flags, DATA_FRAG_FLAGS); octet_item = proto_tree_add_item(tree, hf_rtps_sm_octets_to_next_header, tvb, offset + 2, 2, little_endian ? ENC_LITTLE_ENDIAN : ENC_BIG_ENDIAN);