From b22dbd03f06c5d3b5e71ae99b55b5d7d21a11cd9 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 21 Feb 2018 08:57:52 +0100 Subject: [PATCH] Add IntegerRange for Wcatch-value= option. 2018-02-21 Martin Liska * c.opt (Wcatch-value=): Add IntegerRange. From-SVN: r257869 --- gcc/c-family/ChangeLog | 4 ++++ gcc/c-family/c.opt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 3a124d0c161..49cfea95b3d 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2018-02-21 Martin Liska + + * c.opt (Wcatch-value=): Add IntegerRange. + 2018-02-15 Jason Merrill * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides. 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 -- 2.30.2