summaryrefslogtreecommitdiff
path: root/src/bin/psql/large_obj.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2011-04-28 10:56:14 -0400
committerAndrew Dunstan <andrew@dunslane.net>2011-04-28 10:56:14 -0400
commitc02d5b7c27d740830379244db4b9ef111bbf0fc8 (patch)
treef1de6c2b7db8181b7d703fc5bd6732ffecda3c8c /src/bin/psql/large_obj.c
parent39850c7fdb82bd7c64dbb759c5754e29fc0af5f2 (diff)
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.
Diffstat (limited to 'src/bin/psql/large_obj.c')
-rw-r--r--src/bin/psql/large_obj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/large_obj.c b/src/bin/psql/large_obj.c
index 594fa0eccf8..d8e703af4db 100644
--- a/src/bin/psql/large_obj.c
+++ b/src/bin/psql/large_obj.c
@@ -14,7 +14,7 @@
static void
print_lo_result(const char *fmt,...)
-__attribute__((format(printf, 1, 2)));
+__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2)));
static void
print_lo_result(const char *fmt,...)