Dear all,

@Guy M: thanks a lot for the mpeg descriptor dissector, this is great!

while compiling it, I've got a warning == error about an unused variable
in the parental rating descriptor. Trivial patch attached,

thanks,

   Martin
Index: epan/dissectors/packet-mpeg-descriptor.c
===================================================================
--- epan/dissectors/packet-mpeg-descriptor.c	(revision 41602)
+++ epan/dissectors/packet-mpeg-descriptor.c	(working copy)
@@ -1152,12 +1152,9 @@
 void
 proto_mpeg_descriptor_dissect_parental_rating(tvbuff_t *tvb, guint offset, proto_tree *tree)
 {
-	guint8 rating = 0;
-
 	proto_tree_add_item(tree, hf_mpeg_descr_parental_rating_country_code, tvb, offset, 3, ENC_NA);
 	offset += 3;
 
-	rating = tvb_get_guint8(tvb, offset);
 	proto_tree_add_item(tree, hf_mpeg_descr_parental_rating_rating, tvb, offset, 1, ENC_NA);
 }
 
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Reply via email to