com php-src: Suppress -Wtautological-compare in dasc file: ext/opcache/jit/zend_jit_x86.dasc

From: Date: Thu, 13 Jun 2019 07:59:42 +0000
Subject: com php-src: Suppress -Wtautological-compare in dasc file: ext/opcache/jit/zend_jit_x86.dasc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106750@lists.php.net to get a copy of this message
Commit: 51d82da6b01747b3dbf43f6c24ba59910423922d Author: Nikita Popov <nikita.ppv@gmail.com> Thu, 13 Jun 2019 09:58:55 +0200 Parents: 39034dbc67f2d74cc3e846189e7a440e771256c3 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=51d82da6b01747b3dbf43f6c24ba59910423922d Log: Suppress -Wtautological-compare in dasc file Changed paths: M ext/opcache/jit/zend_jit_x86.dasc Diff: diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index 18bdb06..714abe2 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

« previous php.cvs (#106750) next »