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) }