Clang: add [[maybe_unused]] to Lock::Guards

This commit is contained in:
Ehmry - 2019-09-06 17:00:48 +02:00
parent 24f4608ce7
commit 28eb528148
1 changed files with 2 additions and 2 deletions

View File

@ -427,7 +427,7 @@ class Genode::Trace::Subject_registry
*/
size_t subjects(Subject_id *dst, size_t dst_len)
{
Lock guard(_lock);
[[maybe_unused]] Lock guard(_lock);
unsigned i = 0;
for (Subject *s = _entries.first(); s && i < dst_len; s = s->next())
@ -453,7 +453,7 @@ class Genode::Trace::Subject_registry
Subject &lookup_by_id(Subject_id id)
{
Lock guard(_lock);
[[maybe_unused]] Lock guard(_lock);
return _unsynchronized_lookup_by_id(id);
}