diff options
Diffstat (limited to 'src/interfaces/libpq')
-rw-r--r-- | src/interfaces/libpq/libpq-int.h | 6 | ||||
-rw-r--r-- | src/interfaces/libpq/pqexpbuffer.c | 2 | ||||
-rw-r--r-- | src/interfaces/libpq/pqexpbuffer.h | 4 | ||||
-rw-r--r-- | src/interfaces/libpq/win32.c | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h index 64579d29404..b9b630a222f 100644 --- a/src/interfaces/libpq/libpq-int.h +++ b/src/interfaces/libpq/libpq-int.h @@ -548,7 +548,7 @@ extern PGresult *pqPrepareAsyncResult(PGconn *conn); extern void pqInternalNotice(const PGNoticeHooks *hooks, const char *fmt,...) /* This lets gcc check the format string for consistency. */ -__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 3))); +pg_attribute_printf(2, 3); extern void pqSaveMessageField(PGresult *res, char code, const char *value); extern void pqSaveParameterStatus(PGconn *conn, const char *name, @@ -653,10 +653,10 @@ extern ssize_t pgtls_write(PGconn *conn, const void *ptr, size_t len); #ifdef ENABLE_NLS extern char * libpq_gettext(const char *msgid) -__attribute__((format_arg(1))); +pg_attribute_format_arg(1); extern char * libpq_ngettext(const char *msgid, const char *msgid_plural, unsigned long n) -__attribute__((format_arg(1))) __attribute__((format_arg(2))); +pg_attribute_format_arg(1) pg_attribute_format_arg(2); #else #define libpq_gettext(x) (x) #define libpq_ngettext(s, p, n) ((n) == 1 ? (s) : (p)) diff --git a/src/interfaces/libpq/pqexpbuffer.c b/src/interfaces/libpq/pqexpbuffer.c index 15117a3d173..43df56a1e09 100644 --- a/src/interfaces/libpq/pqexpbuffer.c +++ b/src/interfaces/libpq/pqexpbuffer.c @@ -39,7 +39,7 @@ static const char oom_buffer[1] = ""; static bool appendPQExpBufferVA(PQExpBuffer str, const char *fmt, va_list args) -__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 0))); +pg_attribute_printf(2, 0); /* diff --git a/src/interfaces/libpq/pqexpbuffer.h b/src/interfaces/libpq/pqexpbuffer.h index 3598271fa9e..345d20376b8 100644 --- a/src/interfaces/libpq/pqexpbuffer.h +++ b/src/interfaces/libpq/pqexpbuffer.h @@ -149,7 +149,7 @@ extern int enlargePQExpBuffer(PQExpBuffer str, size_t needed); extern void printfPQExpBuffer(PQExpBuffer str, const char *fmt,...) /* This extension allows gcc to check the format string */ -__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 3))); +pg_attribute_printf(2, 3); /*------------------------ * appendPQExpBuffer @@ -161,7 +161,7 @@ __attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 3))); extern void appendPQExpBuffer(PQExpBuffer str, const char *fmt,...) /* This extension allows gcc to check the format string */ -__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 3))); +pg_attribute_printf(2, 3); /*------------------------ * appendPQExpBufferStr diff --git a/src/interfaces/libpq/win32.c b/src/interfaces/libpq/win32.c index 4d2497afe9d..04c5ed4b724 100644 --- a/src/interfaces/libpq/win32.c +++ b/src/interfaces/libpq/win32.c @@ -36,7 +36,7 @@ #ifdef ENABLE_NLS extern char * libpq_gettext(const char *msgid) -__attribute__((format_arg(1))); +pg_attribute_format_arg(1); #else #define libpq_gettext(x) (x) #endif |