2003-07-22 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Tue, 22 Jul 2003 18:18:10 +0000 (18:18 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 22 Jul 2003 18:18:10 +0000 (18:18 +0000)
* configure.in (build_warnings): Add -Wformat-nonliteral.
* configure: Re-generate.

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

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

gdb/ChangeLog
gdb/configure
gdb/configure.in
gdb/doc/ChangeLog
gdb/doc/gdbint.texinfo

index edcbec977995bcc3646f8bbec67d1119f5ae0897..8f99a16d310f71fd9d7def5302c16f6d613a6e22 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-22  Andrew Cagney  <cagney@redhat.com>
+
+       * configure.in (build_warnings): Add -Wformat-nonliteral.
+       * configure: Re-generate.
+
 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
        
        dwarf2loc.c (locexpr_describe_location): Fix typo.
index e27294cf577affdc86055dc0c033609ab81ad0bf..1b0aed46aa6cdd66e8c325d400746932da32c6a2 100755 (executable)
@@ -8861,7 +8861,7 @@ fi
 # 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 38792e0339656d54b6bc5beb52287ecac432e879..89940deb31ac8beff7695a3ba24bd1073f4c0c9b 100644 (file)
@@ -976,7 +976,7 @@ AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
 # 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 fe7da200af91296462ff865d6627416aaa54731a..b877983856acf4f72a8f0ac4c9f16d8ebf4cdffb 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-22  Andrew Cagney  <cagney@redhat.com>
+
+       * gdbint.texinfo (Coding): Add -Wformat-nonliteral to -Werror
+       list.
+
 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
 
        * gdb.texinfo (Logging output): New chapter.
index 4f031e0f6b1565155cfc4f66692c52d8caad900a..7b3597aaa8926dedadf39be00984665c7334de40 100644 (file)
@@ -5009,8 +5009,9 @@ that use register windows.
 @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