mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
fix(bakery_lock): add __unused for clang
is_lock_acquired() function is only used in assert() statements, so when compiling without asserts, e.g. with DEBUG=0, the function is unused. this is okay when compiling with gcc because the function is marked as inline but that doesn't work for clang. let's mark this as __unused to avoid -Wunused-function warning-as-error. Change-Id: I93f808fd15f715a65d1bd4f7592affb7997c4bad Signed-off-by: Okash Khawaja <okash@google.com>
This commit is contained in:
parent
9bd3cb5c96
commit
5a030ce4ae
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ static inline void read_cache_op(uintptr_t addr, bool cached)
|
|||
}
|
||||
|
||||
/* Helper function to check if the lock is acquired */
|
||||
static inline bool is_lock_acquired(const bakery_info_t *my_bakery_info,
|
||||
static inline __unused bool is_lock_acquired(const bakery_info_t *my_bakery_info,
|
||||
bool is_cached)
|
||||
{
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue