summaryrefslogtreecommitdiff
path: root/src/map/path.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-09-15 15:29:16 +0200
committerHaru <haru@dotalux.com>2016-10-07 01:10:28 +0200
commitc5780deadbda31d4a76e7f4ded866d769c2a1151 (patch)
tree42a3c979fa9f96ddfe014f485115dffc4e9883d3 /src/map/path.c
parent953feee90e47d75449151834707a165f9ce57fda (diff)
downloadhercules-c5780deadbda31d4a76e7f4ded866d769c2a1151.tar.gz
hercules-c5780deadbda31d4a76e7f4ded866d769c2a1151.tar.bz2
hercules-c5780deadbda31d4a76e7f4ded866d769c2a1151.tar.xz
hercules-c5780deadbda31d4a76e7f4ded866d769c2a1151.zip
Fixed some issues detected by clang's static analyzer (Xcode 8/macOS Sierra)
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/path.c')
-rw-r--r--src/map/path.c2
1 files changed, 0 insertions, 2 deletions
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.