mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Consistently use gcc's __attribute__((format)) to check sprintf-style
format strings wherever possible. Remarkably, this exercise didn't turn up any inconsistencies, but it seems a good idea for the future.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: libpq-int.h,v 1.39 2001/08/17 02:59:20 momjian Exp $
|
||||
* $Id: libpq-int.h,v 1.40 2001/10/03 21:58:28 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -346,10 +346,7 @@ extern int pqWriteReady(PGconn *conn);
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
extern char * libpq_gettext(const char *msgid)
|
||||
#ifdef __GNUC__
|
||||
__attribute__((format_arg(1)))
|
||||
#endif
|
||||
;
|
||||
__attribute__((format_arg(1)));
|
||||
#else
|
||||
#define libpq_gettext(x) (x)
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user