commit | 66b7fdc2cddac41e5718d83b3ed4cbc5e7582c46 | [log] [tgz] |
---|---|---|
author | Okash Khawaja <okash@google.com> | Fri Apr 08 18:06:31 2022 +0100 |
committer | Okash Khawaja <okash@google.com> | Fri Apr 08 18:17:43 2022 +0100 |
tree | 943ab8e2bd581c68b711c475691ae25ec159cbaf | |
parent | 98a1056929df83ea062283d606b0959237e829a0 [diff] |
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>