From 61ec36b7f85991f83e3729e2997ef8d2cd6cc0f2 Mon Sep 17 00:00:00 2001 From: Anton Moberg Date: Fri, 30 Apr 2021 17:10:48 +0200 Subject: Fix unused parameter compilation warning Change-Id: I947f52a83cc9352caf45a7b242e5a15fbdedf6e3 --- src/ethosu_driver.c | 10 ++++++++-- 1 file 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) -- cgit v1.2.1