This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][OBVIOUS] Add IntegerRange for Wcatch-value= option.
- From: Martin Liška <mliska at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 21 Feb 2018 08:52:24 +0100
- Subject: [PATCH][OBVIOUS] Add IntegerRange for Wcatch-value= option.
- Authentication-results: sourceware.org; auth=none
Hi.
This is small documentation fix, I'm going to install the patch
as obvious.
Now we display:
$ ./xg++ -B. --help=c++ | grep catch-value=
-Wcatch-value Warn about catch handlers of non-reference type. Same as -Wcatch-value=.
-Wcatch-value=<0,3> Warn about catch handlers of non-reference type.
Thanks,
Martin
gcc/c-family/ChangeLog:
2018-02-21 Martin Liska <mliska@suse.cz>
* c.opt (Wcatch-value=): Add IntegerRange.
---
gcc/c-family/c.opt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index 7fb386d456d..421b1464545 100644
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -397,7 +397,7 @@ C++ ObjC++ Warning Alias(Wcatch-value=, 1, 0)
Warn about catch handlers of non-reference type.
Wcatch-value=
-C++ ObjC++ Var(warn_catch_value) Warning Joined RejectNegative UInteger LangEnabledBy(C++ ObjC++,Wall, 1, 0)
+C++ ObjC++ Var(warn_catch_value) Warning Joined RejectNegative UInteger LangEnabledBy(C++ ObjC++,Wall, 1, 0) IntegerRange(0, 3)
Warn about catch handlers of non-reference type.
Wchar-subscripts