ref: 19c53534bd86f8ee49b431f34b5d43560954b115
parent: bb12bbaefb07deafad8a95f0e4f3017f45414676
author: James Zern <[email protected]>
date: Wed Dec 18 10:59:09 EST 2013
test/partial_idct_test: fix formatting and a warning test/partial_idct_test.cc:74:5: warning: variable 'size' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] ASSERT_TRUE(0) << "Wrong Size!"; Change-Id: Ic2f880ae09268561c9f036b4d6de220fde6dc5c4
--- a/test/partial_idct_test.cc
+++ b/test/partial_idct_test.cc
@@ -58,21 +58,21 @@
ACMRandom rnd(ACMRandom::DeterministicSeed());
int size;
switch (tx_size_) {
- case TX_4X4:
- size = 4;
- break;
- case TX_8X8:
- size = 8;
- break;
- case TX_16X16:
- size = 16;
- break;
- case TX_32X32:
- size = 32;
- break;
- default:
- ASSERT_TRUE(0) << "Wrong Size!";
- break;
+ case TX_4X4:
+ size = 4;
+ break;
+ case TX_8X8:
+ size = 8;
+ break;
+ case TX_16X16:
+ size = 16;
+ break;
+ case TX_32X32:
+ size = 32;
+ break;
+ default:
+ FAIL() << "Wrong Size!";
+ break;
}
DECLARE_ALIGNED_ARRAY(16, int16_t, test_coef_block1, kMaxNumCoeffs);
DECLARE_ALIGNED_ARRAY(16, int16_t, test_coef_block2, kMaxNumCoeffs);