Skip to content

Commit

Permalink
Use clang analyzer macro to tell it about asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Oct 13, 2013
1 parent 28f5ef2 commit 57a55de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/rad_assert.h
Expand Up @@ -33,7 +33,7 @@ extern void rad_assert_fail (char const *file, unsigned int line, char const *ex
#ifdef NDEBUG
#define rad_assert(expr) ((void) (0))

#elif !defined(FR_SCAN_BUILD)
#elif !defined(__clang_analyzer__)
#define rad_assert(expr) \
((void) ((expr) ? (void) 0 : \
(void) rad_assert_fail (__FILE__, __LINE__, #expr)))
Expand Down

0 comments on commit 57a55de

Please sign in to comment.