Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gqLhW-0000jM-7j for pgsql-hackers@arkaria.postgresql.org; Sun, 03 Feb 2019 17:37:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gqLhT-0007x1-MO for pgsql-hackers@arkaria.postgresql.org; Sun, 03 Feb 2019 17:36:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gqLhT-0007mJ-CF for pgsql-hackers@lists.postgresql.org; Sun, 03 Feb 2019 17:36:59 +0000 Received: from xvm-110-146.dc2.ghst.net ([46.226.110.146] helo=fetter.org) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gqLhM-0005rw-FG for pgsql-hackers@postgresql.org; Sun, 03 Feb 2019 17:36:58 +0000 Received: by fetter.org (Postfix, from userid 1001) id AD02940257; Sun, 3 Feb 2019 18:36:50 +0100 (CET) Date: Sun, 3 Feb 2019 18:36:50 +0100 From: David Fetter To: Andrew Gierth Cc: Noah Misch , pgsql-hackers@postgresql.org Subject: Re: Synchronize with imath upstream Message-ID: <20190203173650.GA18487@fetter.org> References: <20190203035704.GA6226@rfd.leadboat.com> <87y36x76r7.fsf@news-spur.riddles.org.uk> <20190203062048.GB6226@rfd.leadboat.com> <87tvhl75aw.fsf@news-spur.riddles.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87tvhl75aw.fsf@news-spur.riddles.org.uk> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sun, Feb 03, 2019 at 07:07:36AM +0000, Andrew Gierth wrote: > >>>>> "Noah" == Noah Misch writes: > > >> I found it much simpler to strip out -Wdeclaration-after-statement > >> instead: > >> > >> $(RYU_OBJS): override CFLAGS := $(filter-out -Wdeclaration-after-statement,$(CFLAGS)) > > Noah> The -Wno-declaration-after-statement approach takes eight lines > Noah> of code, and the filter-out approach takes one. On the other > Noah> hand, using $(filter-out) changes any runs of whitespace to > Noah> single spaces ("$(filter-out foo,a b c)" yields "a b c"). We do > Noah> risk that with CPPFLAGS and LDFLAGS in a few places. I don't want > Noah> to proliferate that practice, because it changes semantics of > Noah> CFLAGS containing -DFOO="arbitrary text". > > In that case I propose that we avoid the whole issue by removing > -Wdeclaration-after-statement entirely. > > So far, expressed opinions have run about 4:2 in favour of allowing > mixed declarations and code. +1 for this. Best, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate