I noticed that there was a single test failure when running "make check" using the latest gcc/g++ from git (4.7.x).
Pushed to master, as obvious: >From 292402a9b2a9fe3440008e42a41b01185d9a4f9d Mon Sep 17 00:00:00 2001 From: Jim Meyering <[email protected]> Date: Thu, 16 Feb 2012 11:03:31 +0100 Subject: [PATCH] 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 <stdlib.h>. --- tests/c++.at | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/c++.at b/tests/c++.at index d29b6f6..3510498 100644 --- a/tests/c++.at +++ b/tests/c++.at @@ -461,6 +461,7 @@ AT_DATA_GRAMMAR([[input.yy]], %code { + #include <stdlib.h> 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")); -- 1.7.9.1.232.g1a183
