mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-10 21:01:49 +00:00
base: avoid warnings in fifo.h
error: member 'Element' found in multiple base classes of different types Issue #3022
This commit is contained in:
parent
dbeb1b82a9
commit
1ec0619b3e
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user