From: Johann Date: Mon, 4 Nov 2019 21:05:12 +0000 (-0600) Subject: ensure ctx is used X-Git-Tag: v1.8.2~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e5b40800b73b7b73ecfb65de31c247f170cd464;p=libvpx ensure ctx is used Rather that (void)ing ctx, document the case where it might not be used. BUG=webm:1612 Change-Id: I1f1ba9a3d52b43a6987dbe3afec96fa17101e3bf --- 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 }