aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Moberg <anton.moberg@arm.com>2021-04-30 17:10:48 +0200
committerAnton Moberg <anton.moberg@arm.com>2021-04-30 17:10:48 +0200
commit61ec36b7f85991f83e3729e2997ef8d2cd6cc0f2 (patch)
tree0a4bd8836e5a82d87ce04115ed47f15420f679a2
parent35b5d0eebf9709a3439d362a0b53d6270cbc4a94 (diff)
downloadethos-u-core-driver-61ec36b7f85991f83e3729e2997ef8d2cd6cc0f2.tar.gz
Fix unused parameter compilation warning
Change-Id: I947f52a83cc9352caf45a7b242e5a15fbdedf6e3
-rw-r--r--src/ethosu_driver.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ethosu_driver.c b/src/ethosu_driver.c
index 201eeff..22c15c2 100644
--- a/src/ethosu_driver.c
+++ b/src/ethosu_driver.c
@@ -176,9 +176,15 @@ static void *ethosu_semaphore;
void *__attribute__((weak)) ethosu_mutex_create(void) {}
-void __attribute__((weak)) ethosu_mutex_lock(void *mutex) {}
+void __attribute__((weak)) ethosu_mutex_lock(void *mutex)
+{
+ UNUSED(mutex);
+}
-void __attribute__((weak)) ethosu_mutex_unlock(void *mutex) {}
+void __attribute__((weak)) ethosu_mutex_unlock(void *mutex)
+{
+ UNUSED(mutex);
+}
// Baremetal implementation of creating a semaphore
void *__attribute__((weak)) ethosu_semaphore_create(void)