From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15265 invoked by alias); 15 Sep 2016 19:55:06 -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 15228 invoked by uid 89); 15 Sep 2016 19:55:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,URIBL_RED autolearn=ham version=3.3.2 spammy=prohibited X-HELO: mail-oi0-f45.google.com Received: from mail-oi0-f45.google.com (HELO mail-oi0-f45.google.com) (209.85.218.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 15 Sep 2016 19:54:55 +0000 Received: by mail-oi0-f45.google.com with SMTP id q188so85293830oia.3 for ; Thu, 15 Sep 2016 12:54:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bMM6aGIBPddSM7wCgT3Gc9D0b3Mw0t9GGEND4wzlHmE=; b=mvIekqWgc9sZzCeb2FGDfM2X74AyX7K83t+zOhSn91cLShmO7dLLElI/lnzXzzlqv+ BLGITqkb1C8YKl7vODf94IhqPJuMQ3tVlwuFtxEs/EKVFzQDJAsLiHFLan1dL8t+06Fv F7O2C6cO0P/vtkQmNbVlEpcMSO35/n1MA6Tx6wMphyTK60TQtnJcKcDcGBsNjI3F1h1d HlnMT6UMjnvd+8w2ueqdUX7zGnGmkla/UIJIJuX4nrv9TJBYSbVnHeu0VDlZnGe6WweN 5naxuCm8LmNx9Tv6VjBzynikOnD4OpnWPHLrWukCTNAhvjMWfhydr587kApQOAn2IzbG +fHg== X-Gm-Message-State: AE9vXwOW0iPe1PMzwoUjzUiQrzL3caTj4BsVoUlkYsYlKq1M0w0y1Ie19cwc9gpvNv1yd4zmmXi/kCBLxL36Ri+1 X-Received: by 10.202.102.198 with SMTP id m67mr9657687oik.1.1473969293616; Thu, 15 Sep 2016 12:54:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.105.169 with HTTP; Thu, 15 Sep 2016 12:54:32 -0700 (PDT) In-Reply-To: References: <4fd68972-b48b-560a-b8e2-ae7d607b9b87@redhat.com> <48602fe1-c295-fce5-a6fe-e7e259532f44@redhat.com> <0a43f83a-5310-d6c5-c849-23d6284ef3d0@redhat.com> <89a3e9db-e47c-57a3-70bb-62cd8c783c0c@redhat.com> From: Jason Merrill Date: Thu, 15 Sep 2016 20:34:00 -0000 Message-ID: Subject: Re: [PATCH, updated] Add a warning for suspicious use of conditional expressions in boolean context To: Joseph Myers Cc: Bernd Edlinger , Jeff Law , "gcc-patches@gcc.gnu.org" , "fortran@gcc.gnu.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00977.txt.bz2 On Thu, Sep 15, 2016 at 1:42 PM, Joseph Myers wrote: > On Thu, 15 Sep 2016, Bernd Edlinger wrote: > >> So level 1 could be enabled with -Wall and level 2 could be enabled >> with -pedantic and/or -Wpedantic. > > But this warning has absolutely nothing to do with things that are > prohibited by, or undefined in, ISO standards, and so it would be > completely inappropriate for -pedantic to affect it in any way. Agreed. We already pass several warning flags to GCC bootstrap, we can add another. Jason