diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2000-12-07 07:38:13 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2000-12-07 07:38:13 +0000 |
commit | 8308e0b7867616fda51ec1bd82833702880e85f4 (patch) | |
tree | 8ad69a7de8edd61b18604f870ea308d8bbedadb0 | |
parent | 74601d7c09fba7d38715dc1adb1b24fdd98cf1f3 (diff) | |
download | gcc-8308e0b7867616fda51ec1bd82833702880e85f4.zip gcc-8308e0b7867616fda51ec1bd82833702880e85f4.tar.gz gcc-8308e0b7867616fda51ec1bd82833702880e85f4.tar.bz2 |
invoke.texi (-Wformat): Document what format features are checked.
* invoke.texi (-Wformat): Document what format features are
checked.
From-SVN: r38103
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/invoke.texi | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ab59d8e..8be376e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk> + + * invoke.texi (-Wformat): Document what format features are + checked. + 2000-12-06 Kazu Hirata <kazu@hxi.com> * config/h8300/h8300.h: Fix formatting. diff --git a/gcc/invoke.texi b/gcc/invoke.texi index 5d66854..13a5594 100644 --- a/gcc/invoke.texi +++ b/gcc/invoke.texi @@ -1598,6 +1598,16 @@ Check calls to @code{printf} and @code{scanf}, etc., to make sure that the arguments supplied have types appropriate to the format string specified. +The formats are checked against the format features supported by GNU +libc version 2.2. These include all ISO C89 and C99 features, as well +as features from the Single Unix Specification and some BSD and GNU +extensions. Other library implementations may not support all these +features; GCC does not support warning about features that go beyond a +particular library's limitations. However, if @samp{-pedantic} is used +with @samp{-Wformat}, warnings will be given about format features not +in the selected standard version. @xref{C Dialect Options,,Options +Controlling C Dialect}. + @samp{-Wformat} is included in @samp{-Wall}. For more control over some aspects of format checking, the options @samp{-Wno-format-y2k}, @samp{-Wno-format-extra-args}, @samp{-Wformat-nonliteral} and |