frame_resize_test: fix -Wunused-const-variable warning Protect `kFrameDim` with `#if HAVE_AVX2 || HAVE_SSE2`. Since the test uses the _c implementation as the reference there is no point in adding a C instantiation. Change-Id: I9eafd7384261bc29675385e7ed938b75972d5218
diff --git a/test/frame_resize_test.cc b/test/frame_resize_test.cc index b0bcb7b..7a4da45 100644 --- a/test/frame_resize_test.cc +++ b/test/frame_resize_test.cc
@@ -29,13 +29,6 @@ typedef tuple<int, int> FrameDimension; -// Resolutions (width x height) to be tested for resizing. -const FrameDimension kFrameDim[] = { - make_tuple(3840, 2160), make_tuple(2560, 1440), make_tuple(1920, 1080), - make_tuple(1280, 720), make_tuple(640, 480), make_tuple(640, 360), - make_tuple(256, 256), -}; - // Check that two 8-bit output buffers are identical. void AssertOutputBufferEq(const uint8_t *p1, const uint8_t *p2, int width, int height) { @@ -143,6 +136,15 @@ TEST_P(AV1ResizeYTest, DISABLED_SpeedTest) { SpeedTest(); } +#if HAVE_AVX2 || HAVE_SSE2 +// Resolutions (width x height) to be tested for resizing. +const FrameDimension kFrameDim[] = { + make_tuple(3840, 2160), make_tuple(2560, 1440), make_tuple(1920, 1080), + make_tuple(1280, 720), make_tuple(640, 480), make_tuple(640, 360), + make_tuple(256, 256), +}; +#endif + #if HAVE_AVX2 INSTANTIATE_TEST_SUITE_P( AVX2, AV1ResizeYTest,