From ce4c21fab326c8f90affeb091c239e71a0ed0b23 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 12 Nov 2016 18:25:06 +0100 Subject: [PATCH] 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: https://github.com/neutrino-images/ni-neutrino/commit/4bd8696a84e4a011b3bdc549df7ec0edf9b4f226 Author: Stefan Seyfried Date: 2016-11-12 (Sat, 12 Nov 2016) ------------------ This commit was generated by Migit --- src/timerd/timermanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/timerd/timermanager.cpp b/src/timerd/timermanager.cpp index cfb509c8e..6e17a1c01 100644 --- a/src/timerd/timermanager.cpp +++ b/src/timerd/timermanager.cpp @@ -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)