Supress incorrect "may be uninitialized" warning in gcc 4.6
parent
43a423f299
commit
3b9225fd7b
|
|
@ -24,7 +24,10 @@ Event UserInput::ConsumeEvent() {
|
||||||
return Event::NoEvent;
|
return Event::NoEvent;
|
||||||
Event rv;
|
Event rv;
|
||||||
eventQueue.pop(rv);
|
eventQueue.pop(rv);
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||||
return rv;
|
return rv;
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
}
|
}
|
||||||
|
|
||||||
void UserInput::Clear() {
|
void UserInput::Clear() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue