From 292402a9b2a9fe3440008e42a41b01185d9a4f9d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 16 Feb 2012 11:03:31 +0100 Subject: 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 . --- tests/c++.at | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")); -- cgit v1.2.1