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:
parent
4df2c4abd9
commit
a46d94072b
|
@ -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;
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue