This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
build/2418: build error from compiler warning for -Werror
- From: robert dot bu at gmail dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 28 Feb 2008 01:54:25 -0000
- Subject: build/2418: build error from compiler warning for -Werror
- Reply-to: robert dot bu at gmail dot com
>Number: 2418
>Category: build
>Synopsis: build error from compiler warning for -Werror
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Feb 28 01:58:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: robert.bu@gmail.com
>Release: snapshot of 20080226, or most updated CVS
>Organization:
>Environment:
Linux, GCC-3.2.3
>Description:
funaddr in the function of find_function_addr may be initialized to satisfy the compiler. Below is the error message:
gcc -c -g -O2 -I. -I../../gdb/gdb -I../../gdb/gdb/config -DLOCALEDIR="\"/home/
gdb/gdb/../include/opcode -I../../gdb/gdb/../readline/.. -I../bfd -I../../gdb/gd
./gdb/gdb/../libdecnumber -DMI_OUT=1 -DTUI=1 -Wall -Wdeclaration-after-statem
tch -Wno-char-subscripts -Werror ../../gdb/gdb/infcall.c
cc1: warnings being treated as errors
../../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
make[2]: Leaving directory `/home/robert_bu/src/temp/build_gdb/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/home/robert_bu/src/temp/build_gdb'
make: *** [all] Error 2
>How-To-Repeat:
Just build the package
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: