Commit 3475fd11 authored by Tom Lane's avatar Tom Lane

Fix ancient declaration inconsistency in cube & seg ... came across a

compiler that warns about it.
parent 31a242ae
...@@ -13,8 +13,7 @@ ...@@ -13,8 +13,7 @@
#undef yylex /* falure to redefine yylex will result in a call to the */ #undef yylex /* falure to redefine yylex will result in a call to the */
#define yylex cube_yylex /* wrong scanner when running inside the postgres backend */ #define yylex cube_yylex /* wrong scanner when running inside the postgres backend */
extern int yylex(); /* defined as cube_yylex in cubescan.c */ extern int yylex(void); /* defined as cube_yylex in cubescan.l */
extern int errno;
static char *scanbuf; static char *scanbuf;
static int scanbuflen; static int scanbuflen;
......
...@@ -10,8 +10,7 @@ ...@@ -10,8 +10,7 @@
#undef yylex /* falure to redefine yylex will result in calling the */ #undef yylex /* falure to redefine yylex will result in calling the */
#define yylex seg_yylex /* wrong scanner when running inside postgres backend */ #define yylex seg_yylex /* wrong scanner when running inside postgres backend */
extern int errno; extern int yylex(void); /* defined as seg_yylex in segscan.l */
extern int yylex(); /* defined as seg_yylex in segscan.c */
extern int significant_digits( char *str ); /* defined in seg.c */ extern int significant_digits( char *str ); /* defined in seg.c */
void seg_yyerror(const char *message); void seg_yyerror(const char *message);
......
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