From: Jim Meyering Date: Thu, 16 Feb 2012 10:03:31 +0000 (+0100) Subject: tests: avoid c++ failure due to lack of getenv decl X-Git-Tag: v2.7.90~526 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/292402a9b2a9fe3440008e42a41b01185d9a4f9d tests: avoid c++ failure due to lack of getenv decl * tests/c++.at (Syntax error as exception): Avoid spurious failure at least when compiling with g++-4.7.x due to lack of declaration of getenv. Include . --- diff --git a/tests/c++.at b/tests/c++.at index d29b6f60..3510498b 100644 --- a/tests/c++.at +++ b/tests/c++.at @@ -461,6 +461,7 @@ AT_DATA_GRAMMAR([[input.yy]], %code { + #include int yylex (yy::parser::semantic_type *); } @@ -510,7 +511,7 @@ yy::parser::error (const std::string &m) } int -main () +main (void) { yy::parser parser; parser.set_debug_level(!!getenv("YYDEBUG"));