diff options
Diffstat (limited to 'contrib/seg/segparse.y')
-rw-r--r-- | contrib/seg/segparse.y | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/seg/segparse.y b/contrib/seg/segparse.y index 3e4aa31cada..0358ddb182c 100644 --- a/contrib/seg/segparse.y +++ b/contrib/seg/segparse.y @@ -14,10 +14,6 @@ #include "segdata.h" #include "segparse.h" -/* silence -Wmissing-variable-declarations */ -extern int seg_yychar; -extern int seg_yynerrs; - /* * Bison doesn't allocate anything that needs to live across parser calls, * so we can easily have it use palloc instead of malloc. This prevents @@ -35,6 +31,9 @@ static int sig_digits(const char *value); /* BISON Declarations */ %parse-param {SEG *result} %parse-param {struct Node *escontext} +%parse-param {yyscan_t yyscanner} +%lex-param {yyscan_t yyscanner} +%pure-parser %expect 0 %name-prefix="seg_yy" @@ -72,6 +71,8 @@ range: boundary PLUMIN deviation result->u_sigd = Max(sig_digits(strbuf), Max($1.sigd, $3.sigd)); result->l_ext = '\0'; result->u_ext = '\0'; + + (void) yynerrs; /* suppress compiler warning */ } | boundary RANGE boundary |