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

Re: RFC: Fix various problems with "printf" and warnings


On Sat, Jan 21, 2006 at 07:31:17PM -0500, Daniel Jacobowitz wrote:
> 2006-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
> 
> 	* printcmd.c (printf_command): Make format string checking
> 	stricter.  Add separate cases for long_arg, ptr_arg, and
> 	long_double_arg.
> 	* utils.c (xstrvprintf): Improve the error message issued
> 	for a bad format string.
> 	* Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
> 	New variables.
> 	(gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
> 	$(NO_WERROR_CFLAGS).
> 	(printcmd.o): Likewise.  Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
> 	enable -Werror.

Thanks to everyone who commented; I've now checked this in.  A lot of
other targets aren't, but x86_64-linux native is now warning-free.


-- 
Daniel Jacobowitz
CodeSourcery


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