From 579d81b2f26fe43c8a23f623167009f53cacff60 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/053161864373a5a685b2a1c8b20880bf16e114f6 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)