base: avoid warnings in fifo.h

error: member 'Element' found in multiple base classes of different types

Issue #3022
This commit is contained in:
Alexander Boettcher 2018-10-30 10:22:34 +01:00 committed by Norman Feske
parent dbeb1b82a9
commit 1ec0619b3e

View File

@ -94,7 +94,7 @@ class Genode::Fifo
/* if specified element is the first of the queue */
if (qe == _head) {
_head = qe->Element::_next;
_head = qe->Fifo::Element::_next;
if (!_head) _tail = 0;
}
else {
@ -108,12 +108,12 @@ class Genode::Fifo
if (!e->_next) return;
/* e->_next is the element to remove, skip it in list */
e->Element::_next = e->Element::_next->Element::_next;
e->Fifo::Element::_next = e->Fifo::Element::_next->Fifo::Element::_next;
if (!e->Element::_next) _tail = e;
}
qe->Element::_next = 0;
qe->Element::_enqueued = 0;
qe->Fifo::Element::_next = 0;
qe->Fifo::Element::_enqueued = 0;
}
/**