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/2338: i386-linux-nat.c:262: warning: passing argument 2 of 'supply_gregset' from incompatible pointer type


>Number:         2338
>Category:       build
>Synopsis:       i386-linux-nat.c:262: warning: passing argument 2 of 'supply_gregset' from incompatible pointer type
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 14 01:28:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     David Ronis
>Release:        gdb-6.7
>Organization:
>Environment:
Modified Slackware-12.0 on an i686, gcc-4.2.2, linux kernel 2.6.23.1
>Description:
configure  --prefix=/usr
make

Leads to the error message:

/usr/bin/gcc -c -O3 -march=pentium4 -ffast-math -funroll-loops -fomit-frame-pointer    -I. -I.././gdb -I.././gdb/config -DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H -I.././gdb/../include/opcode -I.././gdb/../readline/.. -I../bfd -I.././gdb/../bfd -I.././gdb/../include   -DMI_OUT=1 -DTUI=1  -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wno-switch -Wno-char-subscripts -Werror i386-linux-nat.c

cc1: warnings being treated as errors
i386-linux-nat.c: In function 'fetch_regs':
i386-linux-nat.c:262: warning: passing argument 2 of 'supply_gregset' from incompatible pointer type

removing the -Werror flag "fixes" (hides) the problem.
>How-To-Repeat:

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