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
8888 void vp8_machine_specific_config(VP8_COMMON *ctx) {
8989 #if CONFIG_MULTITHREAD
9090 ctx->processor_core_count = get_cpu_count();
91−#else
92− (void)ctx;
9391 #endif /* CONFIG_MULTITHREAD */
9492
9593 #if VPX_ARCH_ARM
@@ -98,5 +96,8 @@ void vp8_machine_specific_config(VP8_COMMON *ctx) { · 2 unmodified lines
9896 ctx->cpu_caps = x86_simd_caps();
9997 #elif VPX_ARCH_PPC
10098 ctx->cpu_caps = ppc_simd_caps();
99+#else
100+ // generic-gnu targets.
101+ ctx->cpu_caps = 0;
101102 #endif
102103 }

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