From 0cf2a05f3e94a8d610b85e4e8e9248c77a445291 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 31 Oct 2011 10:44:06 -0400 Subject: [PATCH] bug #365 - Add test for non-usage of B0 --- test/main.h | 4 ++++ test/product_selfadjoint.cpp | 1 + 2 files changed, 5 insertions(+) diff --git a/test/main.h b/test/main.h index d9cc95614..c4ef52838 100644 --- a/test/main.h +++ b/test/main.h @@ -40,6 +40,10 @@ #define min(A,B) please_protect_your_min_with_parentheses #define max(A,B) please_protect_your_max_with_parentheses +#define FORBIDDEN_IDENTIFIER (this_identifier_is_forbidden_to_avoid_clashes) this_identifier_is_forbidden_to_avoid_clashes +// B0 is defined in POSIX header termios.h +#define B0 FORBIDDEN_IDENTIFIER + // the following file is automatically generated by cmake #include "split_test_helper.h" diff --git a/test/product_selfadjoint.cpp b/test/product_selfadjoint.cpp index 91ac7a9c1..6c1d83bf2 100644 --- a/test/product_selfadjoint.cpp +++ b/test/product_selfadjoint.cpp @@ -92,4 +92,5 @@ void test_product_selfadjoint() s = internal::random(1,EIGEN_TEST_MAX_SIZE); CALL_SUBTEST_7( product_selfadjoint(Matrix(s,s)) ); } + EIGEN_UNUSED_VARIABLE(s) }