diff options
| author | Tom Lane | 2005-10-15 20:37:36 +0000 |
|---|---|---|
| committer | Tom Lane | 2005-10-15 20:37:36 +0000 |
| commit | ad148c4154b7fccbfc28a19769d36c91090aee3b (patch) | |
| tree | 72b247f37debbcdda981fbb6cdd8438ed3b99c23 /contrib/seg/segscan.l | |
| parent | b562639561c11e2c54042de847106222d8f698d9 (diff) | |
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.
Diffstat (limited to 'contrib/seg/segscan.l')
| -rw-r--r-- | contrib/seg/segscan.l | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/seg/segscan.l b/contrib/seg/segscan.l index 24ad662910f..817300993dd 100644 --- a/contrib/seg/segscan.l +++ b/contrib/seg/segscan.l @@ -9,6 +9,7 @@ #define YY_READ_BUF_SIZE 16777216 /* Avoid exit() on fatal scanner errors (a bit ugly -- see yy_fatal_error) */ +#undef fprintf #define fprintf(file, fmt, msg) ereport(ERROR, (errmsg_internal("%s", msg))) /* Handles to the buffer that the lexer uses internally */ |
