From 02c81e76fb13c2c69427e32a3cc1b1345cc72ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Tue, 29 May 2018 14:19:47 +0200 Subject: [PATCH] [apps/stats] Remove compilation warning about non used value --- apps/statistics/store.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/statistics/store.cpp b/apps/statistics/store.cpp index 869da49fe..982ba470f 100644 --- a/apps/statistics/store.cpp +++ b/apps/statistics/store.cpp @@ -264,15 +264,13 @@ double Store::sortedElementAtCumulatedFrequency(int series, double k, bool * exa double Store::sortedElementAfter(int series, double k) const { assert(m_numberOfPairs[series] > 0); double result = DBL_MAX; - bool foundResult = false; for (int i = 0; i < m_numberOfPairs[series]; i++) { double currentElement = m_data[series][0][i]; if (currentElement > k && currentElement < result) { result = currentElement; - foundResult = true; } } - assert(foundResult); + assert(result < DBL_MAX); return result; }