bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* [PATCH] parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
@ 2019-07-18 23:17 Bernhard Voelker
  2019-07-19  3:03 ` Bruno Haible
  0 siblings, 1 reply; 5+ messages in thread
From: Bernhard Voelker @ 2019-07-18 23:17 UTC (permalink / raw)
  To: bug-gnulib; +Cc: Bernhard Voelker

* 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            | 7 +++++++
 lib/parse-datetime.y | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 08bcf1082..2f427010f 100644
--- 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).
diff --git a/lib/parse-datetime.y b/lib/parse-datetime.y
index b264bb7fb..780575919 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 }
 
-- 
2.22.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-07-21 15:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-18 23:17 [PATCH] parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4 Bernhard Voelker
2019-07-19  3:03 ` Bruno Haible
2019-07-19  7:45   ` Bernhard Voelker
2019-07-19 22:57     ` Bruno Haible
2019-07-21 15:05       ` Bernhard Voelker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).