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 1gqUgP-0007af-Ky for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Feb 2019 03:12:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gqUgM-0003kd-3a for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Feb 2019 03:12:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gqUgL-0003kV-L6 for pgsql-hackers@lists.postgresql.org; Mon, 04 Feb 2019 03:12:25 +0000 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gqUgI-0005GX-V1 for pgsql-hackers@postgresql.org; Mon, 04 Feb 2019 03:12:25 +0000 Received: by mail-pl1-x62c.google.com with SMTP id o6so917794pls.13 for ; Sun, 03 Feb 2019 19:12:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=21WRpooCNbr+nOa4k0G2cS4wvEyjTafIHNK9+cHNoUc=; b=My1kAFtKqaDRdpPBp6WoqmQ/durdooUcT8ltLuv5QCqaIy/6Dv1hJPDlB0hczRfZSE KWD3fxFpeBjbkKXQFJRhL09kR+Luor6G6k3/Lg3HI4OXRvT+QZ4Q7x3LFmLrtCaBu3Ir o7Dn4dPRiIrzWbs3IrwRiJS0KnBCH6lZBDwY8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=21WRpooCNbr+nOa4k0G2cS4wvEyjTafIHNK9+cHNoUc=; b=j7AxbbqZL5A3HYn7vB6ANfugvKqSsqBXRctfHKDhtnWaLPdFG997xQRxLGf5TyWtq8 G5FjreX7qissoOaZ/phB6O09mnlMnM0YWNbp8FWET+HiSbGxCfLJkxTC8+VSDPwdJPPj e2tzysmOLE8i89zooVVmt2fSnsIOXLVk/pKBejOg3ZCn6l9uF342Q5SUeSk1RbsJjjxz k0GUsAnVwT6vofQMu0PZEF7gk15l1/tiEz3XnjCn4dGBFEHIp31ER9hSyqaypFLlA0Z6 mKMSN75T9cziahfV/mpzv+IwQ7MILrMqoSlW4PXf9IAyZNOGB7YoGM5fVAAgdNAjrCIV YNJQ== X-Gm-Message-State: AJcUukcrRhA0JlxFV2tmMeu7bfAi+Fbc5pmIKOeMmuw6dCabUJWWV4gM 6V9pkzkbfeTz0Me4lLmFhfvz7SO5OMY= X-Google-Smtp-Source: ALg8bN5nMHfIyTBVa56Hi2n5ImuTjAeGmmfyWe71EeUhF9MbQVChqChaPdJtv/TSSyFnfY+M3HqVSw== X-Received: by 2002:a17:902:264:: with SMTP id 91mr50287315plc.108.1549249940764; Sun, 03 Feb 2019 19:12:20 -0800 (PST) Received: from rfd.leadboat.com (108-233-125-46.lightspeed.sntcca.sbcglobal.net. [108.233.125.46]) by smtp.gmail.com with ESMTPSA id s84sm24801829pfi.15.2019.02.03.19.12.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Feb 2019 19:12:19 -0800 (PST) Date: Sun, 3 Feb 2019 19:12:17 -0800 From: Noah Misch To: Tom Lane Cc: Andrew Gierth , pgsql-hackers@postgresql.org Subject: Re: Synchronize with imath upstream Message-ID: <20190204031217.GE63707@rfd.leadboat.com> References: <20190203035704.GA6226@rfd.leadboat.com> <87y36x76r7.fsf@news-spur.riddles.org.uk> <20190203062048.GB6226@rfd.leadboat.com> <5102.1549207886@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5102.1549207886@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sun, Feb 03, 2019 at 10:31:26AM -0500, Tom Lane wrote: > Noah Misch writes: > > The -Wno-declaration-after-statement approach takes eight lines of code, and > > the filter-out approach takes one. On the other hand, using $(filter-out) > > changes any runs of whitespace to single spaces ("$(filter-out foo,a b c)" > > yields "a b c"). We do risk that with CPPFLAGS and LDFLAGS in a few places. > > I don't want to proliferate that practice, because it changes semantics of > > CFLAGS containing -DFOO="arbitrary text". > > I don't particularly buy that argument, because CPPFLAGS is where any -D > switches ought to be put. So we've already exposed ourselves to this > risk, in the unlikely scenario where it's not hypothetical. The $(filter-out) corruption is unlikely to matter, indeed. The question is whether to use eight lines of code to inject -Wno-declaration-after-statement or one line to remove -Wdeclaration-after-statement using $(filter-out). I see negligible drawbacks on either side; both approaches are tolerable. The above-described hypothetical problem tips the scale in favor of -Wno-declaration-after-statement.