On Sun, Apr 17, 2011 at 03:48:16PM +0000, Christopher Maynard wrote:
> Kaul <mykaul@...> writes:
> 
> > k12.c: In function 'get_record':k12.c:275:11: error: variable 'actual_len' 
> > set
> but not used [-Werror=unused-but-set-variable]cc1: all warnings being treated 
> as
> errors
> 
> As far as I can tell, actual_len is used after being assigned, so I'm 
> not sure why this warning is emitted.

Could it be because it's used by the K12_HEXDMP macro?

    #define K12_HEXDMP(x,a,b,c,d) k12_hexdump(x,a,b,c,d)

Which then calls a function that uses it?  I wonder if changing the 
macro to the function itself would satisfy that version of gcc?


___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Reply via email to