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