From 7e5b40800b73b7b73ecfb65de31c247f170cd464 Mon Sep 17 00:00:00 2001 From: Johann Date: Mon, 4 Nov 2019 15:05:12 -0600 Subject: [PATCH] ensure ctx is used Rather that (void)ing ctx, document the case where it might not be used. BUG=webm:1612 Change-Id: I1f1ba9a3d52b43a6987dbe3afec96fa17101e3bf --- vp8/common/generic/systemdependent.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vp8/common/generic/systemdependent.c b/vp8/common/generic/systemdependent.c index 76c34d18a..75ce7ef35 100644 --- a/vp8/common/generic/systemdependent.c +++ b/vp8/common/generic/systemdependent.c @@ -88,8 +88,6 @@ static int get_cpu_count() { void vp8_machine_specific_config(VP8_COMMON *ctx) { #if CONFIG_MULTITHREAD ctx->processor_core_count = get_cpu_count(); -#else - (void)ctx; #endif /* CONFIG_MULTITHREAD */ #if VPX_ARCH_ARM @@ -98,5 +96,8 @@ void vp8_machine_specific_config(VP8_COMMON *ctx) { ctx->cpu_caps = x86_simd_caps(); #elif VPX_ARCH_PPC ctx->cpu_caps = ppc_simd_caps(); +#else + // generic-gnu targets. + ctx->cpu_caps = 0; #endif } -- 2.40.0