Rather that (void)ing ctx, document the case where it might not be used. BUG=webm:1612
Unified · Split
| @@ -88,8 +88,6 @@ static int get_cpu_count() { · 87 unmodified lines | |||
| 88 | void vp8_machine_specific_config(VP8_COMMON *ctx) { | 88 | void vp8_machine_specific_config(VP8_COMMON *ctx) { |
| 89 | #if CONFIG_MULTITHREAD | 89 | #if CONFIG_MULTITHREAD |
| 90 | ctx->processor_core_count = get_cpu_count(); | 90 | ctx->processor_core_count = get_cpu_count(); |
| 91 | #else | ||
| 92 | (void)ctx; | ||
| 93 | #endif /* CONFIG_MULTITHREAD */ | 91 | #endif /* CONFIG_MULTITHREAD */ |
| 94 | 92 | ||
| 95 | #if VPX_ARCH_ARM | 93 | #if VPX_ARCH_ARM |
| @@ -98,5 +96,8 @@ void vp8_machine_specific_config(VP8_COMMON *ctx) { · 2 unmodified lines | |||
| 98 | ctx->cpu_caps = x86_simd_caps(); | 96 | ctx->cpu_caps = x86_simd_caps(); |
| 99 | #elif VPX_ARCH_PPC | 97 | #elif VPX_ARCH_PPC |
| 100 | ctx->cpu_caps = ppc_simd_caps(); | 98 | ctx->cpu_caps = ppc_simd_caps(); |
| 99 | #else | ||
| 100 | // generic-gnu targets. | ||
| 101 | ctx->cpu_caps = 0; | ||
| 101 | #endif | 102 | #endif |
| 102 | } | 103 | } |