From: Nikita Popov Date: Thu, 20 Jun 2019 08:35:22 +0000 (+0200) Subject: Fix maybe uninit warning X-Git-Tag: php-7.4.0alpha2~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e162a1c02e2e233b6b1a23bb651a0fb6d344a474;p=php Fix maybe uninit warning --- diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c index e032005964..e58f8fc53b 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);