]> granicus.if.org Git - postgresql/commit
Use a macro variable PG_PRINTF_ATTRIBUTE for the style used for checking printf type...
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 28 Apr 2011 14:56:14 +0000 (10:56 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 28 Apr 2011 14:56:14 +0000 (10:56 -0400)
commitc02d5b7c27d740830379244db4b9ef111bbf0fc8
treef1de6c2b7db8181b7d703fc5bd6732ffecda3c8c
parent39850c7fdb82bd7c64dbb759c5754e29fc0af5f2
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.
16 files changed:
src/backend/utils/adt/format_type.c
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_dump/pg_backup.h
src/bin/pg_dump/pg_backup_archiver.h
src/bin/psql/common.h
src/bin/psql/large_obj.c
src/include/c.h
src/include/lib/stringinfo.h
src/include/pg_config_manual.h
src/include/port.h
src/include/utils/elog.h
src/interfaces/ecpg/preproc/extern.h
src/interfaces/libpq/libpq-int.h
src/interfaces/libpq/pqexpbuffer.h
src/pl/plpython/plpython.c
src/test/regress/pg_regress.c