From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111214 invoked by alias); 23 Jan 2019 00:53:40 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 110716 invoked by uid 89); 23 Jan 2019 00:53:39 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=styles, Hx-languages-length:1056, practical, hopes X-HELO: mail-qt1-f172.google.com Received: from mail-qt1-f172.google.com (HELO mail-qt1-f172.google.com) (209.85.160.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 Jan 2019 00:53:37 +0000 Received: by mail-qt1-f172.google.com with SMTP id l11so602263qtp.0; Tue, 22 Jan 2019 16:53:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=IYbkR59zKyzLcZOWSHupNm9LzTGDnGhSsSQFF8LZekY=; b=axvVRbGEXMiILgaL5j+Pl+LSjKmpJdhlJvtURLlKAq9VYOLM0o5RBku/5MjiVlj/8T 3DrePaUUJn9kkKEUEOJLpgnJ9wcKGLTzfxBctuBX1E3l9TucyfTzesz8w3iLXSYzrukp jus2h5Gz6OOsGgJOjqvO2lm2cHCCMHKtpQBfQ3VsAKR+I+iQPhkdIhh0dyepil9cMdYQ fxZU+HICss+HanglXgej+FTHTEAMPwl+2hOzuQ2C+5i7N1gCAWROqmOI/ndy21eHhKVG EBQl9NFk3jkdocABxFFYKaKklRnj3cbjHArK1maV+0aWbZji7+MFGMB+IvqOU8sqIUal pGIw== Return-Path: Received: from [192.168.0.106] (75-166-110-80.hlrn.qwest.net. [75.166.110.80]) by smtp.gmail.com with ESMTPSA id c12sm91488851qka.42.2019.01.22.16.53.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Jan 2019 16:53:34 -0800 (PST) Subject: Re: [RFC] -Weverything To: Thomas Koenig , gcc mailing list , "fortran@gcc.gnu.org" References: <80e1821d-b6da-c6b6-2bf2-29734f5fd34e@netcologne.de> From: Martin Sebor Message-ID: Date: Wed, 23 Jan 2019 00:53:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <80e1821d-b6da-c6b6-2bf2-29734f5fd34e@netcologne.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00180.txt.bz2 On 1/22/19 11:34 AM, Thomas Koenig wrote: > Hi, > > What would people think about a -Weverything option which turns on > every warning there is? > > I think that could be quite useful in some circumstances, especially > to find potential bugs with warnings that people, for some reason > or other, found too noisy for -Wextra. > > The name could be something else, of course. In the best GNU tradition, > -Wkitchen-sink could be another option :-) I often wish GCC supported it -- not in the hopes of finding every conceivable bug or transgression against known coding styles but as a tool to discover warnings that have to be explicitly enabled either by using their own options or by specifying a higher level than the default. I agree that using -Weverything on real code would lead to far too too much noise to be practical, but I think the concern that it would cause frustration and lead to complaints and bug reports could be mitigated by documenting the option's purpose or even by issuing a warning for using it. Martin