From: Nikita Popov Date: Thu, 13 Jun 2019 07:58:55 +0000 (+0200) Subject: Suppress -Wtautological-compare in dasc file X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51d82da6b01747b3dbf43f6c24ba59910423922d;p=php Suppress -Wtautological-compare in dasc file --- diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index 18bdb06e93..714abe2cc2 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -103,6 +103,12 @@ #include "Zend/zend_cpuinfo.h" #include "jit/zend_jit_x86.h" +/* The generated code may contain tautological comparisons, ignore them. */ +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wtautological-compare" +#endif + const char* zend_reg_name[] = { #if defined(__x86_64__) || defined(_M_X64) "rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi", @@ -10533,6 +10539,10 @@ static zend_regset zend_jit_get_scratch_regset(zend_op_array *op_array, zend_ssa return regset; } +#if defined(__clang__) +# pragma clang diagnostic pop +#endif + /* * Local variables: * tab-width: 4