From 8d8748517953030fe290e3f7eb34683dd13a95c1 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 22 Jul 2003 18:18:10 +0000 Subject: 2003-07-22 Andrew Cagney * configure.in (build_warnings): Add -Wformat-nonliteral. * configure: Re-generate. 2003-07-22 Andrew Cagney * gdbint.texinfo (Coding): Add -Wformat-nonliteral to -Werror list. --- gdb/ChangeLog | 5 +++++ gdb/configure | 2 +- gdb/configure.in | 2 +- gdb/doc/ChangeLog | 5 +++++ gdb/doc/gdbint.texinfo | 5 +++-- 5 files changed, 15 insertions(+), 4 deletions(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index edcbec97799..8f99a16d310 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-07-22 Andrew Cagney + + * configure.in (build_warnings): Add -Wformat-nonliteral. + * configure: Re-generate. + 2003-07-22 Elena Zannoni dwarf2loc.c (locexpr_describe_location): Fix typo. diff --git a/gdb/configure b/gdb/configure index e27294cf577..1b0aed46aa6 100755 --- a/gdb/configure +++ b/gdb/configure @@ -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 diff --git a/gdb/configure.in b/gdb/configure.in index 38792e03396..89940deb31a 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -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 diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index fe7da200af9..b877983856a 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2003-07-22 Andrew Cagney + + * gdbint.texinfo (Coding): Add -Wformat-nonliteral to -Werror + list. + 2003-06-28 Daniel Jacobowitz * gdb.texinfo (Logging output): New chapter. diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo index 2184735df6e..9767f7cb91d 100644 --- a/gdb/doc/gdbint.texinfo +++ b/gdb/doc/gdbint.texinfo @@ -41,7 +41,7 @@ Software Foundation raise funds for GNU development.'' @page @tex \def\$#1${{#1}} % Kluge: collect RCS revision info without $...$ -\xdef\manvers{\$Revision: 1.155 $} % For use in headers, footers too +\xdef\manvers{\$Revision: 1.156 $} % For use in headers, footers too {\parskip=0pt \hfill Cygnus Solutions\par \hfill \manvers\par @@ -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 -- cgit v1.2.1