[MDEV-25225] Warning on deprecated directive in sql_yacc.yy during build Created: 2021-03-17  Updated: 2021-03-23  Resolved: 2021-03-23

Status: Closed
Project: MariaDB Server
Component/s: Parser
Affects Version/s: 10.2, 10.3, 10.4, 10.5, 10.6
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Roel Van de Paar Assignee: Oleksandr Byelkin
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MDEV-21286 bison warnings on ubuntu 20.04 on dep... Closed

 Description   

At rev 3402184ce3d235788455c30a2d2dae3c32d15af9 in 10.6 (may affect earlier versions in same way as well)

/test/10.6_dbg/sql/sql_yacc.yy:332.1-12: warning: deprecated directive: '%pure-parser', use '%define api.pure' [-Wdeprecated]
  332 | %pure-parser                                    /* We have threads */
      | ^~~~~~~~~~~~



 Comments   
Comment by Roel Van de Paar [ 2021-03-23 ]

Tested this further, and the issue exists on 10.2-10.5 also, and on CS. Moving this to a MDEV ticket.

Comment by Alexey Bychko (Inactive) [ 2021-03-23 ]

IIRC it depends on bison version and can't be fixed easily to work smoothly on every distribution. see MDEV-21286

Comment by Roel Van de Paar [ 2021-03-23 ]

Thank you

$ bison --version
bison (GNU Bison) 3.5.1
Written by Robert Corbett and Richard Stallman.
 
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Generated at Thu Feb 08 09:36:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.