From e162a1c02e2e233b6b1a23bb651a0fb6d344a474 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 20 Jun 2019 10:35:22 +0200 Subject: [PATCH] Fix maybe uninit warning --- ext/opcache/Optimizer/zend_inference.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.50.1