]> git.saurik.com Git - bison.git/commit
c++: use __attribute__((__pure__)) to avoid warnings
authorAkim Demaille <akim@lrde.epita.fr>
Wed, 23 Oct 2013 08:57:51 +0000 (10:57 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 5 Nov 2013 09:44:03 +0000 (10:44 +0100)
commitad9d4f9f2e5b74c1306b8d2f6227f37a59832069
treef444d0d43cabccf17a6f91a5dab8f130a085cda3
parent3cc83855d988a89d708c182aff917cac21d9c6f2
c++: use __attribute__((__pure__)) to avoid warnings

Building C++ parsers with -Wsuggest-attribute=const and
-Wsuggest-attribute=noreturn triggers warning in generated code.

* data/lalr1.cc: Call b4_attribute_define.
(debug_stream, debug_level): Flag as pure.
* tests/headers.at (Several parsers): There are now more YY macros
that "leak".
data/lalr1.cc
tests/headers.at