]> Savannah Git Hosting - gnulib.git/commitdiff
parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
authorBernhard Voelker <mail@bernhard-voelker.de>
Thu, 18 Jul 2019 23:17:25 +0000 (01:17 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 19 Jul 2019 02:50:11 +0000 (04:50 +0200)
* 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

ChangeLog
lib/parse-datetime.y

index 08bcf1082d389a43e6e11cccfbb2af4d2311dc03..2f427010ffb0949063e8affcf0ad78a9c1a34d9f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
+
+       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),
+       while the latter is marked as obsolete since version 3.4 (May 2019).
+
 2019-07-16  Bruno Haible  <bruno@clisp.org>
 
        update-copyright: Make it work again (regression from 2019-06-15).
index b264bb7fbbd4ecac46b45d41024cd72686c57ad2..78057591959c0987adf04e9ba54d55f6bcf40605 100644 (file)
@@ -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 }