Fix compiler warnings about appendStringInfoVA and appendStringInfoVA_s.
gcc was correctly complaining that these functions should be declared with the `printf` format attribute. Addresses Issue #14.
This commit is contained in:
		| @ -149,7 +149,8 @@ extern void CHECK_FOR_INTERRUPTS(void); | ||||
| #define appendStringInfoChar	appendPQExpBufferChar | ||||
| #define appendBinaryStringInfo	appendBinaryPQExpBuffer | ||||
|  | ||||
| extern bool appendStringInfoVA(StringInfo str, const char *fmt, va_list args); | ||||
| extern bool appendStringInfoVA(StringInfo str, const char *fmt, va_list args) | ||||
| __attribute__((format(printf, 2, 0))); | ||||
| extern int appendStringInfoFile(StringInfo str, FILE *fp); | ||||
| extern int appendStringInfoFd(StringInfo str, int fd); | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user