This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/9523] build error in incall.c on gcc 3.2.3, due to compiler warning with -Werror


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]