This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [msys+mingw] build error [-Werror=uninitialized]
- From: asmwarrior <asmwarrior at gmail dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 16 Mar 2012 15:31:40 +0800
- Subject: Re: [msys+mingw] build error [-Werror=uninitialized]
- References: <4F629DE1.8060002@gmail.com> <4F62EAC8.8020000@codesourcery.com>
On 2012-3-16 15:24, Yao Qi wrote:
I didn't see any other errors. What error did you see even after you
setting `addr' to 0?
See:
TRY_CATCH (ex, RETURN_MASK_ERROR)
{
addr = value_as_address (vfn);
}
Which means addr is set before passed to print_function_pointer_address() call.
So I'm not sure why gcc report such warning.
Yuanhui Zhang