mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +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.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4bd8696a84
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-11-12 (Sat, 12 Nov 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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