This is the mail archive of the gdb@sources.redhat.com 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]

-Werror and TUI


Today I updated and rebuilt gdb for the first time in quite a while.
I'm using the cvs head on x86 Red Hat Linux 7.3.

My standard build script configures gdb to build with -Werror
(precisely, --enable-gdb-build-warnings=,-Werror).  It also enables
the TUI (I'll probably change this; this isn't the first time I've had
problems with it).

Today's build fails in the TUI:

gcc -c -g -O2    -I. -I../../src/gdb -I../../src/gdb/config -DLOCALEDIR="\"/home/tromey/gnu/baseline-gdb/install/share/locale\"" -DHAVE_CONFIG_H -I../../src/gdb/../include/opcode -I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd  -I../../src/gdb/../include -I../intl -I../../src/gdb/../intl  -DMI_OUT=1 -DTUI=1 -I../../src/gdb/tui -DGDBTK -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Werror ../../src/gdb/tui/tui.c
cc1: warnings being treated as errors
../../src/gdb/tui/tui.c: In function `tui_initialize_readline':
../../src/gdb/tui/tui.c:299: warning: passing arg 2 of `rl_add_defun' from incompatible pointer type
../../src/gdb/tui/tui.c:301: warning: passing arg 2 of `rl_add_defun' from incompatible pointer type
../../src/gdb/tui/tui.c:328: warning: passing arg 2 of `rl_bind_key_in_map' from incompatible pointer type
../../src/gdb/tui/tui.c:329: warning: passing arg 2 of `rl_bind_key_in_map' from incompatible pointer type
../../src/gdb/tui/tui.c:330: warning: passing arg 2 of `rl_bind_key_in_map' from incompatible pointer type
../../src/gdb/tui/tui.c:331: warning: passing arg 2 of `rl_bind_key_in_map' from incompatible pointer type
../../src/gdb/tui/tui.c:332: warning: passing arg 2 of `rl_bind_key_in_map' from incompatible pointer type
../../src/gdb/tui/tui.c:333: warning: passing arg 2 of `rl_bind_key_in_map' from incompatible pointer type
../../src/gdb/tui/tui.c:334: warning: passing arg 2 of `rl_bind_key_in_map' from incompatible pointer type
../../src/gdb/tui/tui.c:335: warning: passing arg 2 of `rl_bind_key_in_map' from incompatible pointer type
../../src/gdb/tui/tui.c:336: warning: passing arg 2 of `rl_bind_key_in_map' from incompatible pointer type
../../src/gdb/tui/tui.c:337: warning: passing arg 2 of `rl_bind_key_in_map' from incompatible pointer type
../../src/gdb/tui/tui.c:338: warning: passing arg 2 of `rl_bind_key_in_map' from incompatible pointer type
../../src/gdb/tui/tui.c:339: warning: passing arg 2 of `rl_bind_key_in_map' from incompatible pointer type
../../src/gdb/tui/tui.c:340: warning: passing arg 2 of `rl_bind_key_in_map' from incompatible pointer type
make[1]: *** [tui.o] Error 1

Tom


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