com php-src: Fix maybe uninit warning: ext/opcache/Optimizer/ze nd_inference.c

From: Date: Thu, 20 Jun 2019 08:35:22 +0000
Subject: com php-src: Fix maybe uninit warning: ext/opcache/Optimizer/ze nd_inference.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106933@lists.php.net to get a copy of this message
Commit: e162a1c02e2e233b6b1a23bb651a0fb6d344a474 Author: Nikita Popov <nikita.ppv@gmail.com> Thu, 20 Jun 2019 10:35:22 +0200 Parents: fa70aedf03b8e7bd1ea5a03ed6e68162caf59a1d Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e162a1c02e2e233b6b1a23bb651a0fb6d344a474 Log: Fix maybe uninit warning Changed paths: M ext/opcache/Optimizer/zend_inference.c Diff: diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c index e032005..e58f8fc 100644 --- a/ext/opcache/Optimizer/zend_inference.c +++ b/ext/opcache/Optimizer/zend_inference.c @@ -627,6 +627,9 @@ static int zend_inference_calc_binary_op_range( op2_min = OP2_MIN_RANGE(); op1_max = OP1_MAX_RANGE(); op2_max = OP2_MAX_RANGE(); + /* Suppress uninit variable warnings, these will only be used if the overflow + * flags are all false. */ + t1 = t2 = t3 = t4 = 0; ZEND_SIGNED_MULTIPLY_LONG(op1_min, op2_min, t1, dummy, t1_overflow); ZEND_SIGNED_MULTIPLY_LONG(op1_min, op2_max, t2, dummy, t2_overflow); ZEND_SIGNED_MULTIPLY_LONG(op1_max, op2_min, t3, dummy, t3_overflow);

« previous php.cvs (#106933) next »