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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy