diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-04-18 22:14:03 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-04-18 22:14:03 -0400 |
commit | 34b14c48f31e5b794d48fd083f5fa39d7b4a6411 (patch) | |
tree | ffdf50ff510fa998891079ce9fe8b26e293aa251 /test | |
parent | 086d5f1ac6485f7f31e7a04995799905cb93dedb (diff) |
shut up stupid gcc 4.5.0 warning
Diffstat (limited to 'test')
-rw-r--r-- | test/main.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/main.h b/test/main.h index 0a5e0746f..0603f6e7a 100644 --- a/test/main.h +++ b/test/main.h @@ -353,7 +353,9 @@ struct test_is_equal_impl { if(a1.size() != a2.size()) return false; // we evaluate a2 into a temporary of the shape of a1. this allows to let Assign.h handle the transposing if needed. - typename Derived1::PlainObject a2_evaluated(a2); + typename Derived1::PlainObject a2_evaluated; + a2_evaluated(0,0) = a2(0,0); // shut up GCC 4.5.0 bogus warning about a2_evaluated's array being used uninitialized in the 1x1 case, see block_1 test + a2_evaluated = a2; for(int i = 0; i < a1.size(); ++i) if(a1.coeff(i) != a2_evaluated.coeff(i)) return false; return true; |