]> granicus.if.org Git - postgresql/commit
Fix GCC 7 snprintf() compiler warning.
authorAndres Freund <andres@anarazel.de>
Tue, 3 Apr 2018 21:08:41 +0000 (14:08 -0700)
committerAndres Freund <andres@anarazel.de>
Tue, 3 Apr 2018 21:08:41 +0000 (14:08 -0700)
commit2b3031559a607833e4e265bb9726d52f398661e0
tree78477587308fa310d75a4229a457e30ccde0b649
parentcd5005bc12d0f9a15fe7dddd3e1ac92496608114
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
src/test/modules/test_bloomfilter/test_bloomfilter.c