Use _U_ for unused function parameters instead of assigning the variable
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 22 Apr 2011 17:33:53 +0000 (17:33 +0000)
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 22 Apr 2011 17:33:53 +0000 (17:33 +0000)
to itself.  Found by clang 3.0 (trunk 129935) compiler.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36821 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-iax2.c

index 7c13c03c1e255acf5aba585e07387b98c5de69ec..d9be125b53da7414edb3f4a65ec1cef22213a51b 100644 (file)
@@ -1892,8 +1892,8 @@ static guint32 dissect_trunkcall_nots (tvbuff_t * tvb, guint32 offset, proto_tre
 
 
 static guint32 dissect_trunkpacket (tvbuff_t * tvb, guint32 offset,
-                                        guint16 scallno, packet_info * pinfo,
-                                        proto_tree * iax2_tree, proto_tree *main_tree)
+                                        guint16 scallno _U_, packet_info * pinfo,
+                                        proto_tree * iax2_tree, proto_tree *main_tree _U_)
 {
   guint8 cmddata, trunkts;
   int ncalls = 0;
@@ -1901,10 +1901,6 @@ static guint32 dissect_trunkpacket (tvbuff_t * tvb, guint32 offset,
   proto_item *cd, *nc = NULL;
   proto_tree *field_tree = NULL;
 
-  /* shut the compiler up */
-  scallno = scallno;
-  main_tree = main_tree;
-
   cmddata = tvb_get_guint8(tvb, offset + 1);
   trunkts = cmddata & IAX2_TRUNK_TS;
 
@@ -2170,7 +2166,7 @@ static void desegment_iax(tvbuff_t *tvb, packet_info *pinfo, proto_tree *iax2_tr
 
 static void dissect_payload(tvbuff_t *tvb, guint32 offset,
                             packet_info *pinfo, proto_tree *iax2_tree,
-                            proto_tree *tree, guint32 ts, gboolean video,
+                            proto_tree *tree, guint32 ts _U_, gboolean video,
                             iax_packet_data *iax_packet)
 {
 #if 0
@@ -2181,9 +2177,6 @@ static void dissect_payload(tvbuff_t *tvb, guint32 offset,
   guint32 nbytes;
   iax_call_data *iax_call = iax_packet -> call_data;
 
-  /* keep compiler quiet */
-  ts = ts;
-
   if( offset >= tvb_reported_length (tvb)) {
     col_append_str (pinfo->cinfo, COL_INFO, ", empty frame" );
     return;