Commit ad148c41 authored by Tom Lane's avatar Tom Lane

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.
parent b5626395
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#define YY_READ_BUF_SIZE 16777216 #define YY_READ_BUF_SIZE 16777216
/* Avoid exit() on fatal scanner errors (a bit ugly -- see yy_fatal_error) */ /* 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))) #define fprintf(file, fmt, msg) ereport(ERROR, (errmsg_internal("%s", msg)))
/* Handles to the buffer that the lexer uses internally */ /* Handles to the buffer that the lexer uses internally */
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#define YY_READ_BUF_SIZE 16777216 #define YY_READ_BUF_SIZE 16777216
/* Avoid exit() on fatal scanner errors (a bit ugly -- see yy_fatal_error) */ /* 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))) #define fprintf(file, fmt, msg) ereport(ERROR, (errmsg_internal("%s", msg)))
/* Handles to the buffer that the lexer uses internally */ /* Handles to the buffer that the lexer uses internally */
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "common.h" #include "common.h"
/* Avoid exit() on fatal scanner errors */ /* Avoid exit() on fatal scanner errors */
#undef fprintf
#define fprintf(file, fmt, msg) ts_error(ERROR, fmt, msg) #define fprintf(file, fmt, msg) ts_error(ERROR, fmt, msg)
char *token = NULL; /* pointer to token */ char *token = NULL; /* pointer to token */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment