This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Tiny documentation update in diagnostic.c
- From: "Nicola Pero" <nicola dot pero at meta-innovation dot com>
- To: "gcc-patches at gnu dot org" <gcc-patches at gnu dot org>
- Date: Tue, 24 May 2011 19:12:21 +0200 (CEST)
- Subject: Tiny documentation update in diagnostic.c
Ok to commit ?
Thanks
Index: ChangeLog
===================================================================
--- ChangeLog (revision 174112)
+++ ChangeLog (working copy)
@@ -1,3 +1,15 @@
+2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
+
+ * diagnostic.c (pedwarn): Updated comment.
+
Index: diagnostic.c
===================================================================
--- diagnostic.c (revision 174112)
+++ diagnostic.c (working copy)
@@ -701,8 +701,9 @@
Note that these diagnostics are issued independent of the setting
of the -pedantic command-line switch. To get a warning enabled
only with that switch, use either "if (pedantic) pedwarn
- (OPT_pedantic,...)" or just "pedwarn (OPT_pedantic,..)". To get a
- pedwarn independently of the -pedantic switch use "pedwarn (0,...)".
+ (,OPT_pedantic,...)" or just "pedwarn (,OPT_pedantic,..)". To get
+ a pedwarn independently of the -pedantic switch use "pedwarn
+ (,0,...)".
Returns true if the warning was printed, false if it was inhibited. */