From patchwork Mon Jun 16 12:28:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 360121 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 876E5140085 for ; Mon, 16 Jun 2014 22:28:55 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=GlOAO1OuoEYhimFp/8s7Acow/SD17ieCuHD9K0GT4ZUQ9Ldyvx242 iOkjxvshjYkqTyysNUvlCBa08N/wD7E1NDDNTbW4lvy5jSjsXxhLeoqaplq0cqVW HyRm4LAjDh2IqF21ySx+lEXmhUZllqyLlVWfEmLNgpmh9R0IyfYVHE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=B8t9OKsa6bBstndGVxc2iQEZWoQ=; b=mxa7NAdoGOb5MxySoOsR Te6sCRATCC0M3T2lH0nnraTp8r8Rx9uA0mV0eMRcEkAP0DmhdsT7/lI0dorwf/MA gcriXABSiCSZP63xQQRa/0s4R7HeJ81KJTtac2Es4jFryCYSxrGOyp027TRbR5pA 8ydejuTjhRIC5RWGtO03w2k= Received: (qmail 8771 invoked by alias); 16 Jun 2014 12:28:49 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 8755 invoked by uid 89); 16 Jun 2014 12:28:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 16 Jun 2014 12:28:47 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5GCSk40012060 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 16 Jun 2014 08:28:46 -0400 Received: from redhat.com (ovpn-116-31.ams2.redhat.com [10.36.116.31]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s5GCSh5E004294 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO) for ; Mon, 16 Jun 2014 08:28:45 -0400 Date: Mon, 16 Jun 2014 14:28:43 +0200 From: Marek Polacek To: GCC Patches Subject: [committed] Add missing Var for Wswitch-bool (PR c/60439) Message-ID: <20140616122843.GE17965@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Wswitch-bool option was missing a 'Var' field, which means -Wno-switch-bool didn't suppress the warning. I'm committing the following as obvious. 2014-06-16 Marek Polacek PR c/60439 * c.opt (Wswitch-bool): Add Var. Marek diff --git gcc/c-family/c.opt gcc/c-family/c.opt index d2e047f..91f8275 100644 --- gcc/c-family/c.opt +++ gcc/c-family/c.opt @@ -543,7 +543,7 @@ C ObjC C++ ObjC++ Var(warn_switch_enum) Warning Warn about all enumerated switches missing a specific case Wswitch-bool -C ObjC C++ ObjC++ Warning Init(1) +C ObjC C++ ObjC++ Var(warn_switch_bool) Warning Init(1) Warn about switches with boolean controlling expression Wmissing-format-attribute