Get rid of some warnings about variables whose values might be lost in a

longjmp, by properly qualifying those variables as volatile.

svn path=/trunk/; revision=12914
This commit is contained in:
Guy Harris 2005-01-01 23:11:46 +00:00
parent 4df2c4abd9
commit a46d94072b
3 changed files with 4 additions and 3 deletions

View File

@ -164,7 +164,7 @@ dissect_eth_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
int fcs_len)
{
proto_item *ti;
eth_hdr *ehdr;
eth_hdr *volatile ehdr;
volatile gboolean is_802_2;
proto_tree *volatile fh_tree = NULL;
const char *src_addr, *dst_addr;

View File

@ -340,7 +340,7 @@ dissect_tr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
static tr_hdr trh_arr[4];
static int trh_current=0;
tr_hdr *trh;
tr_hdr *volatile trh;
/* non-source-routed version of source addr */
static guint8 trn_shost_nonsr[6];

View File

@ -389,8 +389,9 @@ call_dissector_through_handle(dissector_handle_t handle, tvbuff_t *tvb,
*/
static int
call_dissector_work(dissector_handle_t handle, tvbuff_t *tvb,
packet_info *pinfo, proto_tree *tree)
packet_info *pinfo_arg, proto_tree *tree)
{
packet_info *volatile pinfo = pinfo_arg;
const char *saved_proto;
guint16 saved_can_desegment;
volatile int ret;