Clang: maybe_unused

This commit is contained in:
Ehmry - 2019-09-16 17:31:56 +02:00
parent ca98ac2a0f
commit e3c285ac0c
3 changed files with 4 additions and 5 deletions

View File

@ -35,7 +35,7 @@ class Genode::Native_utcb
* and the user process. It is not backed by a * and the user process. It is not backed by a
* dataspace but provided by the kernel. * dataspace but provided by the kernel.
*/ */
addr_t _utcb[UTCB_SIZE/sizeof(addr_t)]; [[maybe_unused]] addr_t _utcb[UTCB_SIZE/sizeof(addr_t)];
public: public:

View File

@ -406,7 +406,7 @@ class Genode::Trace::Subject_registry
*/ */
~Subject_registry() ~Subject_registry()
{ {
Lock guard(_lock); [[maybe_unused]] Lock guard(_lock);
while (Subject *s = _entries.first()) while (Subject *s = _entries.first())
_unsynchronized_destroy(*s); _unsynchronized_destroy(*s);
@ -417,7 +417,7 @@ class Genode::Trace::Subject_registry
*/ */
void import_new_sources(Source_registry &) void import_new_sources(Source_registry &)
{ {
Lock guard(_lock); [[maybe_unused]] Lock guard(_lock);
_sources.export_sources(_tester, _inserter); _sources.export_sources(_tester, _inserter);
} }
@ -445,7 +445,7 @@ class Genode::Trace::Subject_registry
*/ */
size_t release(Subject_id subject_id) size_t release(Subject_id subject_id)
{ {
Lock guard(_lock); [[maybe_unused]] Lock guard(_lock);
Subject &subject = _unsynchronized_lookup_by_id(subject_id); Subject &subject = _unsynchronized_lookup_by_id(subject_id);
return _unsynchronized_destroy(subject); return _unsynchronized_destroy(subject);

View File

@ -25,7 +25,6 @@
#include <region_map_component.h> #include <region_map_component.h>
#include <dataspace_component.h> #include <dataspace_component.h>
static const bool verbose = false;
static const bool verbose_page_faults = false; static const bool verbose_page_faults = false;