Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxcAH-0005q3-2Q for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Apr 2017 16:27:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cxcAG-000179-Jc for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Apr 2017 16:27:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cxc8l-0005wF-7G for pgsql-hackers@postgresql.org; Mon, 10 Apr 2017 16:26:07 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cxc8e-0003hG-F9 for pgsql-hackers@postgresql.org; Mon, 10 Apr 2017 16:26:05 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v3AGPxY6014448; Mon, 10 Apr 2017 12:25:59 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers Subject: Re: GCC 7 warnings In-reply-to: References: Comments: In-reply-to Peter Eisentraut message dated "Mon, 10 Apr 2017 11:03:23 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14446.1491841559.1@sss.pgh.pa.us> Date: Mon, 10 Apr 2017 12:25:59 -0400 Message-ID: <14447.1491841559@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Peter Eisentraut writes: > Possible fixes: > a) Ignore, hoping GCC will change before final release. (unlikely at > this point) > b) Add compiler option to disable this particular warning, worry about > it later. (Might be an option for backpatching.) > c) Expand the target buffer sizes until the warning goes away. (Sample > patch attached.) > d) Replace most of the problematic code with psprintf() and dynamically > sized buffers. +1 for (c) as you have it. Later we might think about selectively doing (d), but it seems like more work for probably not much benefit. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers