]> granicus.if.org Git - libvpx/commitdiff
aom_ports: Silence warnings in aom_timer.h
authorTom Finegan <tomfinegan@google.com>
Fri, 4 Nov 2016 16:56:25 +0000 (09:56 -0700)
committerYaowu Xu <yaowu@google.com>
Sat, 5 Nov 2016 17:48:36 +0000 (10:48 -0700)
When CONFIG_OS_SUPPORT is not enabled the aom_timer timer function
stubs cause unused parameter warnings. This comments out the arg
names and silences the warning.

Change-Id: I97bdbcbebdf081ac5cb2ffd86439028a1e672fa2

aom_ports/aom_timer.h

index cc5203c3a952b5a2342ab5fcabffb7fc5a537e0a..d684c3a9fd8c62f520dedd170b6c885df4bfe9c5 100644 (file)
@@ -97,11 +97,13 @@ 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*/) {}
 
-static INLINE void aom_usec_timer_mark(struct aom_usec_timer *t) {}
+static INLINE void aom_usec_timer_mark(struct aom_usec_timer * /*t*/) {}
 
-static INLINE int aom_usec_timer_elapsed(struct aom_usec_timer *t) { return 0; }
+static INLINE int aom_usec_timer_elapsed(struct aom_usec_timer * /*t*/) {
+  return 0;
+}
 
 #endif /* CONFIG_OS_SUPPORT */