You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2014/09/30 23:26:27 UTC

git commit: Fix assert to be the debug version for Coverity.

Repository: trafficserver
Updated Branches:
  refs/heads/master 8df4d0b18 -> c3facdf6d


Fix assert to be the debug version for Coverity.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/c3facdf6
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/c3facdf6
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/c3facdf6

Branch: refs/heads/master
Commit: c3facdf6d518207243ab09089aa8f345f5a1a184
Parents: 8df4d0b
Author: Alan M. Carroll <am...@apache.org>
Authored: Tue Sep 30 16:26:13 2014 -0500
Committer: Alan M. Carroll <am...@apache.org>
Committed: Tue Sep 30 16:26:13 2014 -0500

----------------------------------------------------------------------
 lib/ts/ink_assert.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c3facdf6/lib/ts/ink_assert.h
----------------------------------------------------------------------
diff --git a/lib/ts/ink_assert.h b/lib/ts/ink_assert.h
index ead610c..7e89da3 100644
--- a/lib/ts/ink_assert.h
+++ b/lib/ts/ink_assert.h
@@ -46,7 +46,7 @@ extern "C"
 
   inkcoreapi void _ink_assert(const char *a, const char *f, int l) TS_NORETURN;
 
-#if defined(DEBUG) || defined(__clang_analyzer__)
+#if defined(DEBUG) || defined(__clang_analyzer__) || defined(__COVERITY__)
 #define ink_assert(EX) ( \
             (void)(likely(EX) ? (void)0 : _ink_assert(#EX, __FILE__, __LINE__))\
 )