]> granicus.if.org Git - libvpx/commitdiff
vp8 machine setup: mark unused variable
authorJohann <johannkoenig@google.com>
Thu, 23 Jun 2016 00:41:25 +0000 (17:41 -0700)
committerJohann Koenig <johannkoenig@google.com>
Thu, 23 Jun 2016 13:46:20 +0000 (13:46 +0000)
When building without multithreading and for a non-arm, non-x86 system,
ctx is unused.

Cleans up -Wextra warning:
unused parameter ‘ctx’ [-Werror=unused-parameter]

Change-Id: Ifddff89d2ebd45f7d71e3d415a8f2415dd818957

vp8/common/generic/systemdependent.c

index 28dc262ae5a2c1c935a213c3f2977de80b679892..6d5f302d7a4766b262658c61bf91e35ed3c555c7 100644 (file)
@@ -94,6 +94,8 @@ 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 ARCH_ARM