fix CPP guard on clang pragmas
This commit is contained in:
parent
d3095f47da
commit
93b38e25a6
|
@ -172,7 +172,7 @@
|
|||
# define INIT_JIT_ON 0
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#ifdef __clang__
|
||||
# ifdef MZ_PRECISE_GC
|
||||
# pragma clang diagnostic ignored "-Wself-assign"
|
||||
# endif
|
||||
|
|
|
@ -157,7 +157,7 @@ static int check_dos_slashslash_qm(const char *next, int len, int *drive_end,
|
|||
|
||||
#define is_drive_letter(c) (((unsigned char)c < 128) && isalpha((unsigned char)c))
|
||||
|
||||
#ifdef __GNUC__
|
||||
#ifdef __clang__
|
||||
# ifdef MZ_PRECISE_GC
|
||||
# pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
# endif
|
||||
|
|
|
@ -31,10 +31,12 @@
|
|||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic ignored "-Waddress"
|
||||
# ifdef MZ_PRECISE_GC
|
||||
# pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
# pragma clang diagnostic ignored "-Wself-assign"
|
||||
# pragma clang diagnostic ignored "-Wconstant-logical-operand"
|
||||
#ifdef __clang__
|
||||
# ifdef MZ_PRECISE_GC
|
||||
# pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
# pragma clang diagnostic ignored "-Wself-assign"
|
||||
# pragma clang diagnostic ignored "-Wconstant-logical-operand"
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
# include <malloc.h>
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#ifdef __clang__
|
||||
# ifdef MZ_PRECISE_GC
|
||||
# pragma clang diagnostic ignored "-Wself-assign"
|
||||
# endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user