From f2fd4885c2a906414e0f36acf95d252e5a9d5805 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Tue, 8 Jan 2013 19:00:34 -0800 Subject: Improve warning management more --- src/map/mob.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/map/mob.cpp') diff --git a/src/map/mob.cpp b/src/map/mob.cpp index df739a8..06026de 100644 --- a/src/map/mob.cpp +++ b/src/map/mob.cpp @@ -21,10 +21,6 @@ #include "pc.hpp" #include "skill.hpp" -#ifndef max -#define max( a, b ) (((a) > (b)) ? (a) : (b) ) -#endif - #define MIN_MOBTHINKTIME 100 #define MOB_LAZYMOVEPERC 50 // Move probability in the negligent mode MOB (rate of 1000 minute) @@ -4606,7 +4602,8 @@ int mob_readskilldb(void) { char *sp[20], *p; int mob_id; - struct mob_skill *ms; + // always initialized, but clang is not smart enough yet + struct mob_skill *ms = nullptr; int j = 0; if (line[0] == '/' && line[1] == '/') -- cgit v1.2.3-70-g09d2