[Issue #74] Added __clang__ checks on assert.h __GNUC__ ifdefs for better source searching
This commit is contained in:
parent
0722fd4c99
commit
6917eb4bda
2 changed files with 2 additions and 2 deletions
|
@ -224,7 +224,7 @@
|
|||
|
||||
// Safe array comparison assertions
|
||||
|
||||
# if defined(__GNUC__) || defined(__cplusplus)
|
||||
# if defined(__GNUC__) || defined(__clang__) || defined(__cplusplus)
|
||||
|
||||
# ifdef __cplusplus
|
||||
# define CR_ARR_COMPARE_(A, B, Size, Cmp, Result) \
|
||||
|
|
|
@ -125,7 +125,7 @@ CR_END_C_API
|
|||
# define CR_FAIL_ABORT_ criterion_abort_test
|
||||
# define CR_FAIL_CONTINUES_ criterion_continue_test
|
||||
|
||||
# ifdef __GNUC__
|
||||
# if defined(__GNUC__) || defined(__clang__)
|
||||
// We disable the format-zero-length warning because we use the validity of
|
||||
// asprintf(out, "") for empty assertion messages
|
||||
# pragma GCC diagnostic ignored "-Wformat-zero-length"
|
||||
|
|
Loading…
Add table
Reference in a new issue