History

ensure ctx is used

Rather that (void)ing ctx, document the case where it might not be used. BUG=webm:1612

Johann committed 7 years ago

Commit 7e5b4081 parent 88f6a891 file · +3 −2Browse files

Unified · Split

vp8/common/generic/systemdependent.c+3−2
@@ -88,8 +88,6 @@ static int get_cpu_count() { · 87 unmodified lines
88void vp8_machine_specific_config(VP8_COMMON *ctx) {88void vp8_machine_specific_config(VP8_COMMON *ctx) {
89#if CONFIG_MULTITHREAD89#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_ARM93#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_PPC97#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#endif102#endif
102}103}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t