diff --git a/lib/verify.h b/lib/verify.h index a8ca59b09..3cd71b280 100644 --- a/lib/verify.h +++ b/lib/verify.h @@ -305,6 +305,8 @@ template --enable-gcc-warnings, which compiles with -Dlint. It's nicer when 'assume' silences warnings even with older GCCs. */ # define assume(R) ((R) ? (void) 0 : __builtin_trap ()) +#elif defined __COVERITY__ +# define assume(R) ((R) ? (void) 0 : __coverity_panic__ ()) #else /* Some tools grok NOTREACHED, e.g., Oracle Studio 12.6. */ # define assume(R) ((R) ? (void) 0 : /*NOTREACHED*/ (void) 0)