pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix GCC 7 snprintf() compiler warning.
Date: Tue, 03 Apr 2018 21:12:56 +0000
Message-ID: <E1f3TEe-00075W-Iq@gemulon.postgresql.org> (raw)

Fix GCC 7 snprintf() compiler warning.

Make buffer 1 byte larger to fit a sign.  It's actually impossible for
there to be a sign in practice, but this is still required to keep GCC 7
happy.

Cleanup from commit 51bc271790eb234a1ba4d14d3e6530f70de92ab5.

Based on a suggestion from Peter Eisentraut.

Author: Peter Geoghegan
Reported-By: Peter Eisentraut
Discussion: https://postgr.es/m/d1cc82ed-d07d-cef2-7c00-2e987f121648@2ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2b3031559a607833e4e265bb9726d52f398661e0

Modified Files
--------------
src/test/modules/test_bloomfilter/test_bloomfilter.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



Message-ID: <E1f3TEe-00075W-Iq@gemulon.postgresql.org>
Permalink:  ../E1f3TEe-00075W-Iq@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f3TEe-00075W-Iq@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Fix GCC 7 snprintf() compiler warning.
  In-Reply-To: <E1f3TEe-00075W-Iq@gemulon.postgresql.org>
  References: <E1f3TEe-00075W-Iq@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox