From ebe968239c886114e290a95e4aa2403e467ee1b0 Mon Sep 17 00:00:00 2001 From: Alexandre Janniaux Date: Wed, 11 Jan 2023 17:35:19 +0100 Subject: [PATCH] video_chroma: copy: skip test when SSE2 is not available Fix a test compilation failure when building against a target not supporting SSE2. --- modules/video_chroma/copy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/video_chroma/copy.c b/modules/video_chroma/copy.c index a89eb3044b..485db915ee 100644 --- a/modules/video_chroma/copy.c +++ b/modules/video_chroma/copy.c @@ -1107,7 +1107,9 @@ int main(void) alarm(10); #ifndef COPY_TEST_NOOPTIM +#ifdef CAN_COMPILE_SSE2 if (!vlc_CPU_SSE2()) +#endif { fprintf(stderr, "WARNING: could not test SSE\n"); return 77;