Wireshark-dev: Re: [Wireshark-dev] not sure whats going on with this error
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Sat, 23 May 2015 18:53:38 -0700
On May 23, 2015, at 6:39 PM, wulfman <wulfman@xxxxxxxxxxx> wrote:

> In file included from packet-scsi.c:89:0:
> packet-scsi.c: In function 'dissect_spc_mgmt_protocol_in':
> packet-scsi.h:263:12: error: variable 'try_offset' might be clobbered by
> 'longjmp' or 'vfork' [-Werror=clobbered]
>  guint     try_offset;

Try changing it to

	volatile guint try_offset;

and rebuilding.

> arm compiling here

It may be that compilers determine whether something "might be clobbered by 'longjmp' or 'vfork'" based on whether it happens to be in a register or in memory, rather than on what the C specification says about longjmp(), so some compilers, for some target instruction sets, complain, and others don't.