]> granicus.if.org Git - libvpx/commitdiff
aom_ports: Fix build in Xcode 8.
authorTom Finegan <tomfinegan@google.com>
Mon, 7 Nov 2016 15:40:30 +0000 (07:40 -0800)
committerYaowu Xu <yaowu@google.com>
Tue, 8 Nov 2016 01:50:54 +0000 (01:50 +0000)
Use void casts and avoid unused/unnamed parameter warnings.

Change-Id: Id02ec2c613cb1423f693bcc56832ccd9b41d05bd

aom_ports/aom_timer.h

index d684c3a9fd8c62f520dedd170b6c885df4bfe9c5..904f2fe51ca761e7127893ccdd7d2a8385e3cb6f 100644 (file)
@@ -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;
 }