[OBVIOUS] Add IntegerRange for Wcatch-value= option.

Message ID a1de9bf6-db97-53ea-e0fd-a4664c1e37bf@suse.cz
State New
Headers show
Series
  • [OBVIOUS] Add IntegerRange for Wcatch-value= option.
Related show

Commit Message

Martin Liška Feb. 21, 2018, 7:52 a.m.
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(-)

Patch

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