Kaydet (Commit) 859656f4 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#735349 silence Unchecked return value from library

Change-Id: Ie87d7600b69da0a567fafc7a949f97a6d4fe03e8
üst 2f454648
...@@ -2331,10 +2331,10 @@ bool SalDisplay::XIfEventWithTimeout( XEvent* o_pEvent, XPointer i_pPredicateDat ...@@ -2331,10 +2331,10 @@ bool SalDisplay::XIfEventWithTimeout( XEvent* o_pEvent, XPointer i_pPredicateDat
aFD.fd = ConnectionNumber(GetDisplay()); aFD.fd = ConnectionNumber(GetDisplay());
aFD.events = POLLIN; aFD.events = POLLIN;
aFD.revents = 0; aFD.revents = 0;
poll( &aFD, 1, i_nTimeout ); (void)poll(&aFD, 1, i_nTimeout);
if( ! XCheckIfEvent( GetDisplay(), o_pEvent, i_pPredicate, i_pPredicateData ) ) if( ! XCheckIfEvent( GetDisplay(), o_pEvent, i_pPredicate, i_pPredicateData ) )
{ {
poll( &aFD, 1, i_nTimeout ); // try once more for a packet of events from the Xserver (void)poll(&aFD, 1, i_nTimeout); // try once more for a packet of events from the Xserver
if( ! XCheckIfEvent( GetDisplay(), o_pEvent, i_pPredicate, i_pPredicateData ) ) if( ! XCheckIfEvent( GetDisplay(), o_pEvent, i_pPredicate, i_pPredicateData ) )
{ {
bRet = false; bRet = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment