]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix compiler warning
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Dec 2021 05:24:41 +0000 (00:24 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Dec 2021 05:24:41 +0000 (00:24 -0500)
commit98274e8fe7a0eba81b5ae7328138a46a3af01955
treeec0e509eb34cffcd928d279084c7c7f46a7f36e8
parent265b96a96af21958989efeb7ee4b3c0129f75ae5
Fix compiler warning

With some newer gcc versions (8 and 9) you get a -Wformat-overflow
warning here.  In PG11 and later this was already fixed.  Since it's
trivial, backport it to get the older branches building without
warnings.

This back-patches commit 333a186dc into out-of-support branches,
pursuant to newly-established project policy.  The point is to
suppress scary-looking warnings so that people building these
branches needn't expend brain cells verifying that it's safe
to ignore the warnings.

Discussion: https://postgr.es/m/d0316012-ece7-7b7e-2d36-9c38cb77cb3b@enterprisedb.com
contrib/pgbench/pgbench.c