From c5780deadbda31d4a76e7f4ded866d769c2a1151 Mon Sep 17 00:00:00 2001 From: Haru Date: Thu, 15 Sep 2016 15:29:16 +0200 Subject: Fixed some issues detected by clang's static analyzer (Xcode 8/macOS Sierra) Signed-off-by: Haru --- src/common/timer.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/common/timer.c') diff --git a/src/common/timer.c b/src/common/timer.c index 0b28f6a06..f820ebe12 100644 --- a/src/common/timer.c +++ b/src/common/timer.c @@ -258,10 +258,6 @@ int64 timer_gettick(void) { /// Adds a timer to the timer_heap static void push_timer_heap(int tid) { BHEAP_ENSURE(timer_heap, 1, 256); -#ifdef __clang_analyzer__ // Clang's static analyzer warns that BHEAP_ENSURE might set BHEAP_DATA(timer_heap) to NULL. -#include "assert.h" - assert(BHEAP_DATA(timer_heap) != NULL); -#endif // __clang_analyzer__ BHEAP_PUSH(timer_heap, tid, DIFFTICK_MINTOPCMP, swap); } -- cgit v1.2.3-70-g09d2