This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug build/9523] build error in incall.c on gcc 3.2.3, due to compiler warning with -Werror
- From: "pedro at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 21 Jan 2009 13:39:00 -0000
- Subject: [Bug build/9523] build error in incall.c on gcc 3.2.3, due to compiler warning with -Werror
- References: <20080228015801.9523.robert.bu@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From pedro at codesourcery dot com 2009-01-21 13:38 -------
Ok, thanks. That's a different warning though:
old:
>../../gdb/gdb/infcall.c: In function `find_function_addr':
>../../gdb/gdb/infcall.c:197: warning: initialization makes integer from pointer
>make[2]: *** [infcall.o] Error 1
new:
../../src/gdb/infcall.c: In function `find_function_addr':
../../src/gdb/infcall.c:212: warning: `funaddr' might be used
uninitialized in this function
I can't see any path where funaddr might be used uninitialized, though.
Maybe a gcc-3.2.3 bug? I happen to have gcc 3.3 and 3.4 on my box, and
those also don't trigger this.
Initializing to NULL may silently hide some future bugs, where that
warning would be useful. Oh, well, we should handle this somehow.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
Summary|build error from compiler |build error in incall.c on
|warning for -Werror |gcc 3.2.3, due to compiler
| |warning with -Werror
http://sourceware.org/bugzilla/show_bug.cgi?id=9523
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.