summaryrefslogtreecommitdiff
path: root/lib/parse-datetime.y
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2019-07-19 01:17:25 +0200
committerBruno Haible <bruno@clisp.org>2019-07-19 04:50:11 +0200
commite6aaa76729cd845fdd91e50e113bf6fd63d4521f (patch)
treecc79ee6746cbee995d46046c424c3a3fff651f81 /lib/parse-datetime.y
parentb5a9fa677847081c9b4f26908272f122b15df8b9 (diff)
downloadgnulib-e6aaa76729cd845fdd91e50e113bf6fd63d4521f.tar.gz
parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
* lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent "%pure-parser". The former is available since Bison 2.3b (2008, [1]), while the latter is marked as obsolete since version 3.4 (May 2019, [2]): ./lib/parse-datetime.y:568.1-12: warning: deprecated directive, \ use '%define api.pure' [-Wdeprecated] 568 | %pure-parser | ^~~~~~~~~~~~ [1] https://git.sv.gnu.org/cgit/bison.git/commit/?id=d9df47b656fd [2] https://git.sv.gnu.org/cgit/bison.git/commit/?id=de5207244b5c
Diffstat (limited to 'lib/parse-datetime.y')
-rw-r--r--lib/parse-datetime.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parse-datetime.y b/lib/parse-datetime.y
index b264bb7fbb..7805759195 100644
--- a/lib/parse-datetime.y
+++ b/lib/parse-datetime.y
@@ -565,7 +565,7 @@ debug_print_relative_time (char const *item, parser_control const *pc)
/* We want a reentrant parser, even if the TZ manipulation and the calls to
localtime and gmtime are not reentrant. */
-%pure-parser
+%define api.pure
%parse-param { parser_control *pc }
%lex-param { parser_control *pc }