aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rtps.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2014-09-03 08:49:54 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2014-09-04 06:23:04 +0000
commitb4045ba7c333a1b143bcaa2a17e6c804c0b64158 (patch)
tree95047858781ea638f7fbf6d1117e6c369050504b /epan/dissectors/packet-rtps.c
parent23adc871f4c26e605a12e659f1ddf13a51713163 (diff)
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 <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-rtps.c')
-rw-r--r--epan/dissectors/packet-rtps.c4
1 files changed, 3 insertions, 1 deletions
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);