Hello,
On pc Debian x86-64 with master sources updated yesterday, I noticed this
during building:
/home/julien/compile-libreoffice/libreoffice/rsc/source/parser/rscyacc.y:
warning: 2 shift/reduce conflicts [-Wconflicts-sr]
/home/julien/compile-libreoffice/libreoffice/connectivity/source/parse/sqlbison.y:
warning: 2 nonterminals useless in grammar [-Wother]
/home/julien/compile-libreoffice/libreoffice/connectivity/source/parse/sqlbison.y:
warning: 3 rules useless in grammar [-Wother]
/home/julien/compile-libreoffice/libreoffice/connectivity/source/parse/sqlbison.y:222.65-84:
warning: nonterminal useless in grammar: row_value_const_list [-Wother]
%type <pParseNode> table_value_const_list row_value_constructor
row_value_const_list row_value_constructor_elem
^^^^^^^^^^^^^^^^^^^^
/home/julien/compile-libreoffice/libreoffice/connectivity/source/parse/sqlbison.y:228.20-33:
warning: nonterminal useless in grammar: extract_source [-Wother]
%type <pParseNode> extract_source char_length_exp octet_length_exp
bit_length_exp select_sublist string_value_exp
^^^^^^^^^^^^^^
/home/julien/compile-libreoffice/libreoffice/connectivity/source/parse/sqlbison.y:751.25-753.40:
warning: rule useless in grammar [-Wother]
row_value_constructor_elem
^^^^^
/home/julien/compile-libreoffice/libreoffice/connectivity/source/parse/sqlbison.y:754.17-756.33:
warning: rule useless in grammar [-Wother]
| row_value_const_list ',' row_value_constructor_elem
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/julien/compile-libreoffice/libreoffice/connectivity/source/parse/sqlbison.y:1766.17-1770.17:
warning: rule useless in grammar [-Wother]
datetime_value_exp
^^^^
/home/julien/compile-libreoffice/libreoffice/connectivity/source/parse/sqlbison.y:
warning: 13 shift/reduce conflicts [-Wconflicts-sr]
/home/julien/compile-libreoffice/libreoffice/connectivity/source/parse/sqlbison.y:
warning: 15 reduce/reduce conflicts [-Wconflicts-rr]
May these rules be removed or should they be used in a way?
What about reduce and shift conflicts, any bison expert here?
BTW, all these warnings are not new but I think it could help to harden the
code (and perhaps prevent some bugs or optimize a bit)
Julien
--
View this message in context:
http://nabble.documentfoundation.org/Build-bison-warning-tp4123033.html
Sent from the Dev mailing list archive at Nabble.com.
Context
- Build bison warning · julien2412
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.