db/update/Queue: work around GCC7 -Wuninitialized
This commit is contained in:
parent
dead461542
commit
e573cbf032
@ -49,6 +49,10 @@ struct UpdateQueueItem {
|
|||||||
bool IsDefined() const {
|
bool IsDefined() const {
|
||||||
return id != 0;
|
return id != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Clear() {
|
||||||
|
id = 0;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class UpdateQueue {
|
class UpdateQueue {
|
||||||
|
@ -252,7 +252,7 @@ UpdateService::RunDeferred()
|
|||||||
delete walk;
|
delete walk;
|
||||||
walk = nullptr;
|
walk = nullptr;
|
||||||
|
|
||||||
next = UpdateQueueItem();
|
next.Clear();
|
||||||
|
|
||||||
idle_add(IDLE_UPDATE);
|
idle_add(IDLE_UPDATE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user