From 9b3974ef34059c8d12b23483f90b562fc256733d Mon Sep 17 00:00:00 2001 From: Tom Finegan Date: Mon, 7 Nov 2016 07:40:30 -0800 Subject: [PATCH] aom_ports: Fix build in Xcode 8. Use void casts and avoid unused/unnamed parameter warnings. Change-Id: Id02ec2c613cb1423f693bcc56832ccd9b41d05bd --- aom_ports/aom_timer.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/aom_ports/aom_timer.h b/aom_ports/aom_timer.h index d684c3a9f..904f2fe51 100644 --- a/aom_ports/aom_timer.h +++ b/aom_ports/aom_timer.h @@ -97,11 +97,12 @@ struct aom_usec_timer { void *dummy; }; -static INLINE void aom_usec_timer_start(struct aom_usec_timer * /*t*/) {} +static INLINE void aom_usec_timer_start(struct aom_usec_timer *t) { (void)t; } -static INLINE void aom_usec_timer_mark(struct aom_usec_timer * /*t*/) {} +static INLINE void aom_usec_timer_mark(struct aom_usec_timer *t) { (void)t; } -static INLINE int aom_usec_timer_elapsed(struct aom_usec_timer * /*t*/) { +static INLINE int aom_usec_timer_elapsed(struct aom_usec_timer *t) { + (void)t; return 0; } -- 2.40.0