about summary refs log tree commit diff
path: root/src/base/system.h
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2012-08-17 18:32:56 +0200
committeroy <Tom_Adams@web.de>2013-02-24 17:58:34 +0100
commit1711be955b54b9d12431b341ea290bad406023cc (patch)
tree3f667dab7e2ef59aa622035b5d95f4a00ab9b57a /src/base/system.h
parent98042012a6c6e639c9736b32518dd082ca539615 (diff)
downloadzcatch-1711be955b54b9d12431b341ea290bad406023cc.tar.gz
zcatch-1711be955b54b9d12431b341ea290bad406023cc.zip
fixed all the errors that the clang static analayzer found
Diffstat (limited to 'src/base/system.h')
-rw-r--r--src/base/system.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/base/system.h b/src/base/system.h
index 032cf785..7ba0c0a0 100644
--- a/src/base/system.h
+++ b/src/base/system.h
@@ -33,6 +33,13 @@ void dbg_assert(int test, const char *msg);
 #define dbg_assert(test,msg) dbg_assert_imp(__FILE__, __LINE__, test, msg)
 void dbg_assert_imp(const char *filename, int line, int test, const char *msg);
 
+
+#ifdef __clang_analyzer__
+#include <assert.h>
+#undef dbg_assert
+#define dbg_assert(test,msg) assert(test)
+#endif
+
 /*
 	Function: dbg_break
 		Breaks into the debugger.