Use a macro variable PG_PRINTF_ATTRIBUTE for the style used for checking printf type functions.
Andrew Dunstan <andrew@dunslane.net>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/format_type.c | modified | +1 −1 |
| src/bin/pg_ctl/pg_ctl.c | modified | +1 −1 |
| src/bin/pg_dump/pg_backup_archiver.h | modified | +5 −5 |
| src/bin/pg_dump/pg_backup.h | modified | +2 −2 |
| src/bin/psql/common.h | modified | +1 −1 |
| src/bin/psql/large_obj.c | modified | +1 −1 |
| src/include/c.h | modified | +1 −1 |
| src/include/lib/stringinfo.h | modified | +1 −1 |
| src/include/pg_config_manual.h | modified | +15 −0 |
| src/include/port.h | modified | +4 −4 |
| src/include/utils/elog.h | modified | +13 −13 |
| src/interfaces/ecpg/preproc/extern.h | modified | +1 −1 |
| src/interfaces/libpq/libpq-int.h | modified | +1 −1 |
| src/interfaces/libpq/pqexpbuffer.h | modified | +2 −2 |
| src/pl/plpython/plpython.c | modified | +4 −4 |
| src/test/regress/pg_regress.c | modified | +3 −3 |