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/map/path.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/map/path.c') diff --git a/src/map/path.c b/src/map/path.c index f5e08d4df..07b38b740 100644 --- a/src/map/path.c +++ b/src/map/path.c @@ -192,10 +192,8 @@ bool path_search_long(struct shootpath_data *spd,struct block_list *bl,int16 m,i /// Ensures there is enough space in array to store new element. static void heap_push_node(struct node_heap *heap, struct path_node *node) { -#ifndef __clang_analyzer__ // TODO: Figure out why clang's static analyzer doesn't like this BHEAP_ENSURE(*heap, 1, 256); BHEAP_PUSH2(*heap, node, NODE_MINTOPCMP, swap_ptr); -#endif // __clang_analyzer__ } /// Updates path_node in the binary node_heap. -- cgit v1.2.3-70-g09d2