]> git.saurik.com Git - bison.git/commit - data/location.cc
lalr1.cc: avoid GCC 4.3 warnings.
authorAkim Demaille <demaille@gostai.com>
Fri, 27 Mar 2009 06:26:24 +0000 (07:26 +0100)
committerAkim Demaille <demaille@gostai.com>
Fri, 27 Mar 2009 06:26:24 +0000 (07:26 +0100)
commit56f772e95e0268d7dc4695450e8f65c22be9fbc2
tree171e57ef430039f4451cf9078e11ca2062d5d3a4
parent11c073b7e53fb82c67f1adf8cd7c2e60b7518729
lalr1.cc: avoid GCC 4.3 warnings.

GCC 4.3 now warns about "a || b && c" and asks for explicit
parentheses.
Reported by Alexandre Duret-Lutz.
* data/location.cc: Update copyright years.
(Position::operator==): Use parens to make precedence explicit.
Compare lines and columns first, as they are more likely to be
different, and they are faster to compare.
ChangeLog
data/location.cc