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]

build/2418: build error from compiler warning for -Werror


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


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