pgsql: Fix new warnings from GCC 7

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix new warnings from GCC 7
Date: 2017-05-16 13:00:37
Message-ID: E1dAc5d-0000dL-7v@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix new warnings from GCC 7

This addresses the new warning types -Wformat-truncation
-Wformat-overflow that are part of -Wall, via -Wformat, in GCC 7.

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/47b4913050a320bfba55fa65d52d9ba15488bc70

Modified Files
--------------
contrib/pg_standby/pg_standby.c | 6 +++---
src/backend/access/heap/rewriteheap.c | 4 ++--
src/backend/access/transam/xlog.c | 6 +++---
src/backend/postmaster/pgstat.c | 4 ++--
src/backend/replication/basebackup.c | 4 ++--
src/backend/replication/logical/reorderbuffer.c | 2 +-
src/backend/replication/logical/snapbuild.c | 4 ++--
src/backend/replication/slot.c | 6 +++---
src/backend/storage/file/copydir.c | 10 +++++-----
src/backend/storage/file/fd.c | 12 ++++++------
src/backend/storage/file/reinit.c | 8 ++++----
src/backend/storage/ipc/dsm.c | 4 ++--
src/backend/utils/adt/dbsize.c | 14 +++++++-------
src/backend/utils/cache/relcache.c | 4 ++--
src/backend/utils/error/elog.c | 2 +-
src/backend/utils/time/snapmgr.c | 4 ++--
src/bin/initdb/initdb.c | 4 ++--
src/bin/pg_archivecleanup/pg_archivecleanup.c | 4 ++--
src/bin/pg_basebackup/pg_receivexlog.c | 2 +-
src/bin/pg_resetxlog/pg_resetxlog.c | 12 ++++++------
src/bin/pg_rewind/copy_fetch.c | 10 +++++-----
src/timezone/pgtz.c | 4 ++--
22 files changed, 65 insertions(+), 65 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-05-16 15:54:04 pgsql: doc: Remove unnecessary RETURN statements from example.
Previous Message Tom Lane 2017-05-16 03:28:15 pgsql: In SSL tests, don't scribble on permissions of a repo file.