mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
timermanager: fix -Waddress warning with newer gcc
The address of Events (wich is checked against NULL) can never be NULL, because Events is passed by reference.
This commit is contained in:
committed by
svenhoefer
parent
ee5f73c64d
commit
0531618643
@@ -292,9 +292,10 @@ int CTimerManager::unlockEvents()
|
||||
|
||||
bool CTimerManager::listEvents(CTimerEventMap &Events)
|
||||
{
|
||||
/* events is passed as reference and thus its address is never NULL
|
||||
if(!&Events)
|
||||
return false;
|
||||
|
||||
*/
|
||||
|
||||
Events.clear();
|
||||
for (CTimerEventMap::iterator pos = events.begin(); pos != events.end(); ++pos)
|
||||
|
Reference in New Issue
Block a user