From: Andrew Cagney <ac131313@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: [patch:rfc, rfa:doco] Add -Wformat-nonliteral to -Werror list
Date: Tue, 15 Jul 2003 15:51:00 -0000 [thread overview]
Message-ID: <3F1422FA.3040700@redhat.com> (raw)
[-- 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
next reply other threads:[~2003-07-15 15:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-15 15:51 Andrew Cagney [this message]
2003-07-15 17:38 ` Eli Zaretskii
2003-07-22 18:07 ` Andrew Cagney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F1422FA.3040700@redhat.com \
--to=ac131313@redhat.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox