From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: -Wall Date: Wed, 06 Apr 2016 08:02:26 -0400 Message-ID: References: <5702B7C9.6010805@cs.ucla.edu> <570304CB.4050409@cs.ucla.edu> <5703D5F2.4000708@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459944233 8581 80.91.229.3 (6 Apr 2016 12:03:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Apr 2016 12:03:53 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 06 14:03:45 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1anmBV-00060c-N4 for ged-emacs-devel@m.gmane.org; Wed, 06 Apr 2016 14:03:45 +0200 Original-Received: from localhost ([::1]:42865 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anmBV-0000em-5m for ged-emacs-devel@m.gmane.org; Wed, 06 Apr 2016 08:03:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anmAU-0007Yx-Ac for emacs-devel@gnu.org; Wed, 06 Apr 2016 08:02:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anmAO-000692-QE for emacs-devel@gnu.org; Wed, 06 Apr 2016 08:02:42 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:53189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anmAO-00068w-KI for emacs-devel@gnu.org; Wed, 06 Apr 2016 08:02:36 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1anmAN-0005dk-Pg for emacs-devel@gnu.org; Wed, 06 Apr 2016 14:02:35 +0200 Original-Received: from 69-165-150-200.dsl.teksavvy.com ([69.165.150.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Apr 2016 14:02:35 +0200 Original-Received: from monnier by 69-165-150-200.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Apr 2016 14:02:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 69-165-150-200.dsl.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:bvCqYAUj9BmrNaD5ntMd4jMHVIU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202766 Archived-At: >> warnings should be enabled by default (on Linux), but >> they shouldn't be treated as errors. Agreed. > It's good at times to not treat them as errors, so I installed the attached > patch to add that capability more clearly, with a new configure-time > option --enable-gcc-warnings=warn-only. The attached patch makes this new I don't think the default behavior for --enable-gcc-warnings should be to treat them as errors. IOW I think "--enable-gcc-warnings" should just ask gcc to emit the warnings, and then have "--enable-gcc-warnings=error" to treat them as errors. I think it'd be both closer to what most people would want (just a guess, obviously) and would make more sense from the point of view of the meaning of the words. IOW if we want "--enable-foo" to have errors and "--enable-foo=bar" to just emit the warnings, then "foo" shouldn't be "gcc-warnings". Stefan