From d1d7a1ade9da009f11b8ff47222c6498fdd93aa2 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sun, 23 Jun 2013 19:11:32 +0200 Subject: Workaround a bunch of stupid warnings in unit tests --- test/product_selfadjoint.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/product_selfadjoint.cpp') diff --git a/test/product_selfadjoint.cpp b/test/product_selfadjoint.cpp index 58e2ea90d..e3e2b2cf1 100644 --- a/test/product_selfadjoint.cpp +++ b/test/product_selfadjoint.cpp @@ -62,7 +62,8 @@ template void product_selfadjoint(const MatrixType& m) void test_product_selfadjoint() { - int s; + int s = 0; + s = s; // shuts down ICC's remark #593: variable "s" was set but never used for(int i = 0; i < g_repeat ; i++) { CALL_SUBTEST_1( product_selfadjoint(Matrix()) ); CALL_SUBTEST_2( product_selfadjoint(Matrix()) ); -- cgit v1.2.3