Wireshark-dev: Re: [Wireshark-dev] Build failure: k12.c:275:11: error: variable 'actual_len' se
From: Chris Maynard <chris.maynard@xxxxxxxxx>
Date: Mon, 18 Apr 2011 16:38:53 +0000 (UTC)
Stephen Fisher <steve@...> writes:

> 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?

Ah that's it.  The macro is a nop if DEBUG_K12 isn't defined, which it isn't. 

/* #define DEBUG_K12 */
#ifdef DEBUG_K12
#define K12_HEXDMP(x,a,b,c,d) k12_hexdump(x,a,b,c,d)
#else
#define K12_HEXDMP(x,a,b,c,d)
#endif