From ef196b5ca542bf5ca1e96be2b21c46820834d814 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 8 Mar 2015 20:12:40 +0100 Subject: [PATCH] Add Coverity define to avoid false positives during Static Code Analysis when TC_THROW_FATAL_EXCEPTION is used in the code --- src/Common/Tcdefs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Common/Tcdefs.h b/src/Common/Tcdefs.h index a2d7355d..e177e02c 100644 --- a/src/Common/Tcdefs.h +++ b/src/Common/Tcdefs.h @@ -128,6 +128,11 @@ void ThrowFatalException (int line); # define TC_THROW_FATAL_EXCEPTION *(char *) 0 = 0 #endif +#ifdef __COVERITY__ +#undef TC_THROW_FATAL_EXCEPTION +#define TC_THROW_FATAL_EXCEPTION __coverity_panic__() +#endif + #ifdef TC_WINDOWS_DRIVER #include