pgsql: Use a macro variable PG_PRINTF_ATTRIBUTE for the style used for

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use a macro variable PG_PRINTF_ATTRIBUTE for the style used for
Date: 2011-04-28 15:05:33
Message-ID: E1QFSmb-0007UF-AL@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use a macro variable PG_PRINTF_ATTRIBUTE for the style used for checking printf type functions.

The style is set to "printf" for backwards compatibility everywhere except
on Windows, where it is set to "gnu_printf", which eliminates hundreds of
false error messages from modern versions of gcc arising from %m and %ll{d,u}
formats.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c02d5b7c27d740830379244db4b9ef111bbf0fc8

Modified Files
--------------
src/backend/utils/adt/format_type.c | 2 +-
src/bin/pg_ctl/pg_ctl.c | 2 +-
src/bin/pg_dump/pg_backup.h | 4 ++--
src/bin/pg_dump/pg_backup_archiver.h | 10 +++++-----
src/bin/psql/common.h | 2 +-
src/bin/psql/large_obj.c | 2 +-
src/include/c.h | 2 +-
src/include/lib/stringinfo.h | 2 +-
src/include/pg_config_manual.h | 15 +++++++++++++++
src/include/port.h | 8 ++++----
src/include/utils/elog.h | 26 +++++++++++++-------------
src/interfaces/ecpg/preproc/extern.h | 2 +-
src/interfaces/libpq/libpq-int.h | 2 +-
src/interfaces/libpq/pqexpbuffer.h | 4 ++--
src/pl/plpython/plpython.c | 8 ++++----
src/test/regress/pg_regress.c | 6 +++---
16 files changed, 56 insertions(+), 41 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2011-04-28 19:07:52 pgsql: Add some casts to try to silence most of the remaining format wa
Previous Message Heikki Linnakangas 2011-04-28 09:59:19 pgsql: The arguments to pg_ctl kill are not optional - remove brackets