1818 * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
1919 * Portions Copyright (c) 1994, Regents of the University of California
2020 *
21- * $Id: pqexpbuffer.h,v 1.6 2001/01/24 19:43:31 momjian Exp $
21+ * $Id: pqexpbuffer.h,v 1.7 2001/10/03 21:58:28 tgl Exp $
2222 *
2323 *-------------------------------------------------------------------------
2424 */
@@ -122,7 +122,9 @@ extern intenlargePQExpBuffer(PQExpBuffer str, size_t needed);
122122 * This is a convenience routine that does the same thing as
123123 * resetPQExpBuffer() followed by appendPQExpBuffer().
124124 */
125- extern void printfPQExpBuffer (PQExpBuffer str ,const char * fmt ,...);
125+ extern void printfPQExpBuffer (PQExpBuffer str ,const char * fmt , ...)
126+ /* This extension allows gcc to check the format string */
127+ __attribute__((format (printf ,2 ,3 )));
126128
127129/*------------------------
128130 * appendPQExpBuffer
@@ -131,7 +133,9 @@ extern void printfPQExpBuffer(PQExpBuffer str, const char *fmt,...);
131133 * to str if necessary. This is sort of like a combination of sprintf and
132134 * strcat.
133135 */
134- extern void appendPQExpBuffer (PQExpBuffer str ,const char * fmt ,...);
136+ extern void appendPQExpBuffer (PQExpBuffer str ,const char * fmt , ...)
137+ /* This extension allows gcc to check the format string */
138+ __attribute__((format (printf ,2 ,3 )));
135139
136140/*------------------------
137141 * appendPQExpBufferStr