Skip site navigation (1) Skip section navigation (2)

pgsql: Add missing format attributes

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add missing format attributes
Date: 2011-09-10 20:17:32
Message-ID: E1R2TzY-0003x9-62@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers
Add missing format attributes

Add __attribute__ decorations for printf format checking to the places that
were missing them.  Fix the resulting warnings.  Add
-Wmissing-format-attribute to the standard set of warnings for GCC, so these
don't happen again.

The warning fixes here are relatively harmless.  The one serious problem
discovered by this was already committed earlier in
cf15fb5cabfbc71e07be23cfbc813daee6c5014f.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/52ce20589a8bac4eccaea043b1fe283daaf4f9e3

Modified Files
--------------
configure                                |   60 ++++++++++++++++++++++++++++++
configure.in                             |    1 +
contrib/pg_upgrade/info.c                |    2 +-
contrib/pg_upgrade/pg_upgrade.h          |   16 +++++---
contrib/pg_upgrade/relfilenode.c         |    4 +-
contrib/pgcrypto/px.h                    |    3 +-
src/bin/pg_dump/pg_backup_archiver.c     |    4 +-
src/bin/pg_dump/pg_backup_tar.c          |    2 +-
src/include/lib/stringinfo.h             |    3 +-
src/interfaces/ecpg/ecpglib/descriptor.c |    4 +-
src/interfaces/ecpg/ecpglib/error.c      |    2 +-
src/interfaces/ecpg/ecpglib/execute.c    |    2 +-
src/interfaces/ecpg/ecpglib/extern.h     |    2 +-
13 files changed, 87 insertions(+), 18 deletions(-)

Responses

pgsql-hackers by date

Next:From: Marti RaudseppDate: 2011-09-10 20:29:55
Subject: Re: Alpha 1 for 9.2
Previous:From: Dave PageDate: 2011-09-10 20:07:09
Subject: Re: Alpha 1 for 9.2

pgsql-committers by date

Next:From: Bruce MomjianDate: 2011-09-10 20:39:20
Subject: pgsql: Remove double-quoting of table names in clusterdb. BACKWARD COM
Previous:From: Itagaki TakahiroDate: 2011-09-10 19:23:07
Subject: pgsql: Add datatype directory to SUBDIRS.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group