Fix a compiler warning
Fixed a compiler warning:
suggest braces around initialization of subobject.
BUG=aomedia:2529
Change-Id: I44cafae36ef0f4e166ac2608a20106aa9896e970
diff --git a/test/pickrst_test.cc b/test/pickrst_test.cc
index 9ae411b..09b4aa1 100644
--- a/test/pickrst_test.cc
+++ b/test/pickrst_test.cc
@@ -425,7 +425,8 @@
const int iters = run_times == 1 ? kIterations : 4;
for (int iter = 0; iter < iters && !HasFatalFailure(); ++iter) {
int64_t C_ref[2] = { 0 }, C_test[2] = { 0 };
- int64_t H_ref[2][2] = { 0 }, H_test[2][2] = { 0 };
+ int64_t H_ref[2][2] = { { 0, 0 }, { 0, 0 } };
+ int64_t H_test[2][2] = { { 0, 0 }, { 0, 0 } };
for (int i = 0; i < MAX_DATA_BLOCK * MAX_DATA_BLOCK; ++i) {
dgd_[i] = rng_.Rand8();
src_[i] = rng_.Rand8();
@@ -483,7 +484,8 @@
const int iters = kIterations;
for (int iter = 0; iter < iters && !HasFatalFailure(); ++iter) {
int64_t C_ref[2] = { 0 }, C_test[2] = { 0 };
- int64_t H_ref[2][2] = { 0 }, H_test[2][2] = { 0 };
+ int64_t H_ref[2][2] = { { 0, 0 }, { 0, 0 } };
+ int64_t H_test[2][2] = { { 0, 0 }, { 0, 0 } };
for (int i = 0; i < MAX_DATA_BLOCK * MAX_DATA_BLOCK; ++i) {
dgd_[i] = 0;
src_[i] = 255;