From Peter (bug 2942):

Allow optimalization with -ftracer.

svn path=/trunk/; revision=26822
This commit is contained in:
Stig Bjørlykke 2008-11-22 15:55:01 +00:00
parent 0e4856e8b9
commit 9a0020f2f9
12 changed files with 16 additions and 15 deletions

View File

@ -2623,7 +2623,7 @@ dissect_bgp_capability(tvbuff_t *tvb, proto_tree *tree)
}
static void
dissect_bgp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
dissect_bgp_pdu(tvbuff_t *volatile tvb, packet_info *pinfo, proto_tree *tree,
gboolean first)
{
guint16 bgp_len; /* Message length */
@ -2740,7 +2740,7 @@ dissect_bgp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
guint length_remaining;
guint length;
volatile gboolean first = TRUE; /* TRUE for the first BGP message in packet */
tvbuff_t *next_tvb;
tvbuff_t *volatile next_tvb;
if (check_col(pinfo->cinfo, COL_PROTOCOL))
col_set_str(pinfo->cinfo, COL_PROTOCOL, "BGP");

View File

@ -193,7 +193,7 @@ ethertype(guint16 etype, tvbuff_t *tvb, int offset_after_etype,
guint length_before;
gint captured_length, reported_length;
volatile gboolean dissector_found = FALSE;
const char *saved_proto;
const char *volatile saved_proto;
/* Add the Ethernet type to the protocol tree */
if (tree) {

View File

@ -172,8 +172,8 @@ static int
dissect_gssapi_work(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
gboolean is_verifier)
{
proto_item *item;
proto_tree *subtree;
proto_item *volatile item;
proto_tree *volatile subtree;
volatile int return_offset = 0;
gssapi_conv_info_t *volatile gss_info;
gssapi_oid_value *oidvalue;

View File

@ -563,7 +563,7 @@ dissect_ieee802154_cc24xx(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
static void
dissect_ieee802154_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint options)
{
tvbuff_t *payload_tvb;
tvbuff_t *volatile payload_tvb;
proto_tree *volatile ieee802154_tree = NULL;
proto_item *volatile proto_root = NULL;
proto_item *ti;

View File

@ -149,7 +149,7 @@ dissect_isl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int fcs_len)
{
proto_tree *volatile fh_tree = NULL;
proto_item *ti, *hidden_item;
guint8 type;
volatile guint8 type;
volatile guint16 length;
gint captured_length;
tvbuff_t *volatile payload_tvb = NULL;

View File

@ -2484,7 +2484,7 @@ dissect_ldp_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
int length_remaining;
guint16 plen;
int length;
tvbuff_t *next_tvb;
tvbuff_t *volatile next_tvb;
while (tvb_reported_length_remaining(tvb, offset) != 0) {
length_remaining = tvb_length_remaining(tvb, offset);

View File

@ -241,7 +241,7 @@ extern const value_string scsi_devid_idtype_val[];
*/
#define TRY_SCSI_CDB_ALLOC_LEN(pinfo, tvb, offset, length) \
{ \
gboolean short_packet; \
volatile gboolean short_packet; \
tvbuff_t *new_tvb; \
guint32 end_data_offset=0; \
\

View File

@ -1725,7 +1725,7 @@ dissect_tds_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
guint8 type;
guint16 plen;
guint length;
tvbuff_t *next_tvb;
tvbuff_t *volatile next_tvb;
proto_item *tds_item = NULL;
proto_tree *tds_tree = NULL;

View File

@ -217,7 +217,7 @@ dissect_asciitpkt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
int mgcp_version = 0;
int mgcp_reserved = 0;
volatile int length;
tvbuff_t *next_tvb;
tvbuff_t *volatile next_tvb;
const char *saved_proto;
guint8 string[4];
/*
@ -372,7 +372,7 @@ dissect_tpkt_encap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
int length_remaining;
int data_len;
volatile int length;
tvbuff_t *next_tvb;
tvbuff_t *volatile next_tvb;
const char *saved_proto;
/*

View File

@ -326,10 +326,10 @@ dissect_tr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
proto_tree *tr_tree, *bf_tree;
proto_item *ti, *hidden_item;
int frame_type;
guint8 rcf1, rcf2;
tvbuff_t *next_tvb;
volatile int frame_type;
volatile int fixoffset = 0;
volatile int source_routed = 0;
volatile guint8 trn_rif_bytes;

View File

@ -74,7 +74,8 @@ static void
dissect_vlan(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
proto_tree *ti;
guint16 tci,encap_proto;
guint16 tci;
volatile guint16 encap_proto;
volatile gboolean is_802_2;
proto_tree *volatile vlan_tree;

View File

@ -4099,7 +4099,7 @@ static void dissect_x11_requests(tvbuff_t *tvb, packet_info *pinfo,
conversation_t *conversation;
x11_conv_data_t *volatile state;
int length;
tvbuff_t *next_tvb;
tvbuff_t *volatile next_tvb;
while (tvb_reported_length_remaining(tvb, offset) != 0) {
/*