intrapred test: skip some configurations gcc 7 produces warnings for this file when there are no implementations using the tests. This appears to be connected to the template instantiations. Work around this by skipping the TEST_P sections when they are not needed. BUG=aomedia:1313 Change-Id: I41a44a10f4949ae87cf13de5f3d3c4940e21855f
diff --git a/test/intrapred_test.cc b/test/intrapred_test.cc index cefbb6b..3390c85 100644 --- a/test/intrapred_test.cc +++ b/test/intrapred_test.cc
@@ -140,6 +140,9 @@ } }; +// Suppress an unitialized warning. Once there are implementations to test then +// this can be restored. +#if 0 TEST_P(HighbdIntraPredTest, Bitexact) { // max block size is 32 DECLARE_ALIGNED(16, uint16_t, left_col[2 * 32]); @@ -150,7 +153,10 @@ memset(above_data, 0, sizeof(above_data)); RunTest(left_col, above_data, dst, ref_dst); } +#endif // 0 +// Same issue as above but for arm. +#if !HAVE_NEON TEST_P(LowbdIntraPredTest, Bitexact) { // max block size is 32 DECLARE_ALIGNED(16, uint8_t, left_col[2 * 32]); @@ -161,6 +167,7 @@ memset(above_data, 0, sizeof(above_data)); RunTest(left_col, above_data, dst, ref_dst); } +#endif // !HAVE_NEON // ----------------------------------------------------------------------------- // High Bit Depth Tests