From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26339 invoked by alias); 21 Feb 2018 07:52:28 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 26329 invoked by uid 89); 21 Feb 2018 07:52:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 21 Feb 2018 07:52:26 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 7844BAD0C for ; Wed, 21 Feb 2018 07:52:24 +0000 (UTC) From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Subject: [PATCH][OBVIOUS] Add IntegerRange for Wcatch-value= option. To: gcc-patches@gcc.gnu.org Message-ID: Date: Wed, 21 Feb 2018 07:52:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------05C0B11F5D8BB0A6B6E0134E" X-IsSubscribed: yes X-SW-Source: 2018-02/txt/msg01220.txt.bz2 This is a multi-part message in MIME format. --------------05C0B11F5D8BB0A6B6E0134E Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-length: 538 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 * c.opt (Wcatch-value=): Add IntegerRange. --- gcc/c-family/c.opt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --------------05C0B11F5D8BB0A6B6E0134E Content-Type: text/x-patch; name="0001-Add-IntegerRange-for-Wcatch-value-option.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Add-IntegerRange-for-Wcatch-value-option.patch" Content-length: 584 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 --------------05C0B11F5D8BB0A6B6E0134E--