Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ad148c4

Browse files
committed
Suppress warnings on platforms where fprintf is a macro (eg, recent
Fedora). This was already done by somebody for the core flex files, but these contrib files seem to have been missed.
1 parent b562639 commit ad148c4

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

contrib/cube/cubescan.l

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#define YY_READ_BUF_SIZE 16777216
1010

1111
/* Avoid exit() on fatal scanner errors (a bit ugly -- see yy_fatal_error) */
12+
#undef fprintf
1213
#define fprintf(file, fmt, msg) ereport(ERROR, (errmsg_internal("%s", msg)))
1314

1415
/* Handles to the buffer that the lexer uses internally */

contrib/seg/segscan.l

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#define YY_READ_BUF_SIZE 16777216
1010

1111
/* Avoid exit() on fatal scanner errors (a bit ugly -- see yy_fatal_error) */
12+
#undef fprintf
1213
#define fprintf(file, fmt, msg) ereport(ERROR, (errmsg_internal("%s", msg)))
1314

1415
/* Handles to the buffer that the lexer uses internally */

contrib/tsearch2/wordparser/parser.l

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "common.h"
77

88
/* Avoid exit() on fatal scanner errors */
9+
#undef fprintf
910
#define fprintf(file, fmt, msg) ts_error(ERROR, fmt, msg)
1011

1112
char *token = NULL; /* pointer to token */

0 commit comments

Comments
 (0)