bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 6/6] warnings: introduce Wdeprecated in the usage info


From: Theophile Ranquet
Subject: [PATCH 6/6] warnings: introduce Wdeprecated in the usage info
Date: Wed, 26 Sep 2012 11:36:23 +0200

The Wdeprecated warning, which was introduced some time ago, was not
displayed in the --usage. This patch addresses the issue.

* src/getargs.c (usage): Insert here.
---
 src/getargs.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/getargs.c b/src/getargs.c
index 70a25e0..00e225d 100644
--- a/src/getargs.c
+++ b/src/getargs.c
@@ -343,13 +343,14 @@ Warning categories include:\n\
   `yacc'            incompatibilities with POSIX Yacc\n\
   `conflicts-sr'    S/R conflicts (enabled by default)\n\
   `conflicts-rr'    R/R conflicts (enabled by default)\n\
+  `deprecated'      obsolete constructs\n\
   `other'           all other warnings (enabled by default)\n\
   `all'             all the warnings\n\
   `no-CATEGORY'     turn off warnings in CATEGORY\n\
   `none'            turn off all the warnings\n\
   `error'           treat warnings as errors\n\
-\n\
 "), stdout);
+      fputc (_('\n'), stdout);
 
       fputs (_("\
 THINGS is a list of comma separated words that can include:\n\
-- 
1.7.10




reply via email to

[Prev in Thread] Current Thread [Next in Thread]