This is the mail archive of the gdb-patches@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]

Re: [libiberty and gdb] floatformat_is_valid


   Date: Mon, 15 Sep 2003 10:39:33 -0400
   From: Daniel Jacobowitz <drow@mvista.com>

   2003-09-15  Daniel Jacobowitz  <drow@mvista.com>

	   * floatformat.h (floatformat_is_valid): Add prototype.

   2003-09-15  Daniel Jacobowitz  <drow@mvista.com>

	   * floatformat.c (floatformat_is_valid): New function.
	   (get_field, put_field): Correct comments.

   2003-09-15  Daniel Jacobowitz  <drow@mvista.com>

	   * values.c (unpack_double): Call floatformat_is_valid.


There's a problem with cons-correctness :-(.

gcc -c -g -O2    -I. -I../../src/gdb -I../../src/gdb/config -DLOCALEDIR="\"/usr/local/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 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral -Werror ../../src/gdb/values.c
cc1: warnings being treated as errors
../../src/gdb/values.c: In function `unpack_double':
../../src/gdb/values.c:744: warning: passing arg 2 of `floatformat_is_valid' discards qualifiers from pointer target type
gmake[1]: *** [values.o] Error 1
gmake[1]: Leaving directory `/usr/home/kettenis/sandbox/gdb/obj/gdb'
gmake: *** [all-gdb] Error 2

Could you fix that please?

Mark


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