Wireshark mailing list archives
Re: Build failure: k12.c:275:11: error: variable 'actual_len' set but not used [-Werror=unused-but-set-variable]
From: Jose Pedro Oliveira <jpo () di uminho pt>
Date: Sun, 17 Apr 2011 17:26:53 +0100
On 2011-04-17 16:48, Christopher Maynard wrote:
Kaul <mykaul@...> writes:k12.c: In function 'get_record':k12.c:275:11: error: variable 'actual_len' setbut 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. You can probably get around this by re-running your configure script as, "configure --disable-warnings-as-errors".
Currently trunk doesn't compile under gcc 4.6.0 unless warnings-as-errors are disabled. See also https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5820 /jpo -- José Pedro Oliveira * mailto:jpo () di uminho pt * ___________________________________________________________________________ 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] Christopher Maynard (Apr 17)