Fix some unused variable warnings from GCC.

svn path=/trunk/; revision=45064
This commit is contained in:
Evan Huus 2012-09-23 12:45:03 +00:00
parent 2fc1cdeb74
commit a9bb9186dd
3 changed files with 0 additions and 6 deletions

View File

@ -626,10 +626,8 @@ static void dissect_9P_qid(tvbuff_t * tvb, proto_tree * tree,int offset)
static void dissect_9P_dm(tvbuff_t * tvb, proto_item * item,int offset,int iscreate)
{
proto_item *mode_tree;
guint32 dm;
dm = tvb_get_letohl(tvb,offset);
mode_tree = proto_item_add_subtree(item, ett_9P_dm);
if(!mode_tree)
return;

View File

@ -3215,14 +3215,12 @@ static int
cops_mm_gate_spec(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
proto_item *ti;
proto_tree *stt, *object_tree;
guint8 gs_flags;
/* Create a subtree */
stt = info_to_cops_subtree(tvb,st,n,offset,"Gate Spec");
offset += 4;
/* Flags */
gs_flags = tvb_get_guint8(tvb, offset);
ti = info_to_display(tvb,stt,offset,1,"Flags",NULL,FMT_HEX,&hf_cops_pcmm_gate_spec_flags);
object_tree = proto_item_add_subtree(ti, ett_cops_subtree );
proto_tree_add_item(object_tree, hf_cops_pcmm_gate_spec_flags_gate, tvb, offset, 1, ENC_BIG_ENDIAN);

View File

@ -437,7 +437,6 @@ static void
dissect_vines_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
int offset = 0;
guint16 vip_chksum;
guint16 vip_pktlen;
guint8 vip_tctl; /* Transport Control */
guint8 vip_proto;
@ -453,7 +452,6 @@ dissect_vines_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* To do: check for runts, errs, etc. */
/* capture the necessary parts of the header */
vip_chksum = tvb_get_letohs(tvb, offset);
vip_pktlen = tvb_get_letohs(tvb, offset+2);
vip_tctl = tvb_get_guint8(tvb, offset+3);
vip_proto = tvb_get_guint8(tvb, offset+4);