Wireshark mailing list archives
Re: [Wireshark-dev] Build failure: k12.c:275:11: error: variable 'actual_len' set but not used [-Werror=unused-but-set-variable]
From: Chris Maynard <chris.maynard () gtech com>
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 ___________________________________________________________________________ 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-request () wireshark org?subject=unsubscribe
Current thread:
- Build failure: k12.c:275:11: error: variable 'actual_len' set but not used [-Werror=unused-but-set-variable] Kaul (Apr 17)
- Re: [Wireshark-dev] Build failure: k12.c:275:11: error: variable 'actual_len' set but not used [-Werror=unused-but-set-variable] Christopher Maynard (Apr 17)
- Re: Build failure: k12.c:275:11: error: variable 'actual_len' set but not used [-Werror=unused-but-set-variable] Jose Pedro Oliveira (Apr 17)
- Re: Build failure: k12.c:275:11: error: variable 'actual_len' set but not used [-Werror=unused-but-set-variable] Stephen Fisher (Apr 18)
- Re: [Wireshark-dev] Build failure: k12.c:275:11: error: variable 'actual_len' set but not used [-Werror=unused-but-set-variable] Chris Maynard (Apr 18)
- Re: [Wireshark-dev] Build failure: k12.c:275:11: error: variable 'actual_len' set but not used [-Werror=unused-but-set-variable] Chris Maynard (Apr 18)
- Re: [Wireshark-dev] Build failure: k12.c:275:11: error: variable 'actual_len' set but not used [-Werror=unused-but-set-variable] Christopher Maynard (Apr 17)