Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch:rfc, rfa:doco] Add -Wformat-nonliteral to -Werror list
@ 2003-07-15 15:51 Andrew Cagney
  2003-07-15 17:38 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2003-07-15 15:51 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 189 bytes --]

Hello,

This adds the GCC -Werror option -Wformat-nonliteral to GDB's compiler 
warning list.  Fixing this one turned out to be easy.

I'll look to commit in a week,
Eli, the doco?

Andrew

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 1726 bytes --]

2003-07-15  Andrew Cagney  <cagney@redhat.com>

	* configure.in (build_warnings): Add -Wformat-nonliteral.
	* configure: Re-generate.

Index: doc/ChangeLog
2003-07-15  Andrew Cagney  <cagney@redhat.com>

	* gdbint.texinfo (Coding): Add -Wformat-nonliteral to -Werror
	list.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.128
diff -u -r1.128 configure.in
--- configure.in	8 Jun 2003 18:27:13 -0000	1.128
+++ configure.in	15 Jul 2003 15:47:37 -0000
@@ -976,7 +976,7 @@
 # NOTE: If you add to this list, remember to update
 # gdb/doc/gdbint.texinfo.
 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
--Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
+-Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral"
 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
Index: doc/gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.155
diff -u -r1.155 gdbint.texinfo
--- doc/gdbint.texinfo	22 Jun 2003 04:28:04 -0000	1.155
+++ doc/gdbint.texinfo	15 Jul 2003 15:47:41 -0000
@@ -5009,8 +5009,9 @@
 @item -Wtrigraphs
 
 @item -Wformat
+@itemx -Wformat-nonliteral
 Since @value{GDBN} uses the @code{format printf} attribute on all
-@code{printf} like functions this checks not just @code{printf} calls
+@code{printf} like functions these check not just @code{printf} calls
 but also calls to functions such as @code{fprintf_unfiltered}.
 
 @item -Wparentheses

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch:rfc, rfa:doco] Add -Wformat-nonliteral to -Werror list
  2003-07-15 15:51 [patch:rfc, rfa:doco] Add -Wformat-nonliteral to -Werror list Andrew Cagney
@ 2003-07-15 17:38 ` Eli Zaretskii
  2003-07-22 18:07   ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2003-07-15 17:38 UTC (permalink / raw)
  To: ac131313; +Cc: gdb-patches

> Date: Tue, 15 Jul 2003 11:51:22 -0400
> From: Andrew Cagney <ac131313@redhat.com>
> 
> This adds the GCC -Werror option -Wformat-nonliteral to GDB's compiler=20
> warning list.  Fixing this one turned out to be easy.
> 
> I'll look to commit in a week,
> Eli, the doco?

Okay with me.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch:rfc, rfa:doco] Add -Wformat-nonliteral to -Werror list
  2003-07-15 17:38 ` Eli Zaretskii
@ 2003-07-22 18:07   ` Andrew Cagney
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2003-07-22 18:07 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: gdb-patches

>> Date: Tue, 15 Jul 2003 11:51:22 -0400
>> From: Andrew Cagney <ac131313@redhat.com>
>> 
>> This adds the GCC -Werror option -Wformat-nonliteral to GDB's compiler=20
>> warning list.  Fixing this one turned out to be easy.
>> 
>> I'll look to commit in a week,
>> Eli, the doco?
> 
> 
> Okay with me.

I've checked this in.

Andrew



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-07-22 18:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-15 15:51 [patch:rfc, rfa:doco] Add -Wformat-nonliteral to -Werror list Andrew Cagney
2003-07-15 17:38 ` Eli Zaretskii
2003-07-22 18:07   ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox