From 60dae46462205ff41a284faf6ac9cfd33d12b941 Mon Sep 17 00:00:00 2001 From: Nay Date: Thu, 16 May 2013 01:10:53 +0100 Subject: Core: Fix compiler warnings --- src/server/shared/Debugging/Errors.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/server/shared/Debugging') diff --git a/src/server/shared/Debugging/Errors.cpp b/src/server/shared/Debugging/Errors.cpp index 10ede3ae402..877d7554c43 100644 --- a/src/server/shared/Debugging/Errors.cpp +++ b/src/server/shared/Debugging/Errors.cpp @@ -20,6 +20,7 @@ #include #include +#include namespace Trinity { @@ -29,6 +30,7 @@ void Assert(char const *file, int line, char const *function, char const *messag fprintf(stderr, "\n%s:%i in %s ASSERTION FAILED:\n %s\n%s\n", file, line, function, message, st.c_str()); *((volatile int*)NULL) = 0; + exit(1); } void Fatal(char const *file, int line, char const *function, char const *message) @@ -37,6 +39,7 @@ void Fatal(char const *file, int line, char const *function, char const *message file, line, function, message); ACE_OS::sleep(10); *((volatile int*)NULL) = 0; + exit(1); } void Error(char const *file, int line, char const *function, char const *message) @@ -44,6 +47,7 @@ void Error(char const *file, int line, char const *function, char const *message fprintf(stderr, "\n%s:%i in %s ERROR:\n %s\n", file, line, function, message); *((volatile int*)NULL) = 0; + exit(1); } void Warning(char const *file, int line, char const *function, char const *message) -- cgit v1.2.3