]> granicus.if.org Git - php/commitdiff
Fixed "may be used uninitialized" compilation warnings
authorDmitry Stogov <dmitry@zend.com>
Mon, 30 Nov 2020 14:46:43 +0000 (17:46 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 30 Nov 2020 14:46:43 +0000 (17:46 +0300)
ext/opcache/jit/zend_jit_trace.c

index 522f90a05c63010ca93ee7723fd0968199126459..19db7c54bb332320eb79bf2a139172c1f61e8884 100644 (file)
@@ -745,6 +745,7 @@ static int zend_jit_trace_copy_ssa_var_info(const zend_op_array *op_array, const
                        info = ssa->var_info + op->result_use;
                } else {
                        assert(0);
+                       return 0;
                }
                tssa->vars[ssa_var].no_val = no_val;
                tssa->vars[ssa_var].alias = alias;
@@ -780,6 +781,7 @@ static int zend_jit_trace_copy_ssa_var_range(const zend_op_array *op_array, cons
                        info = ssa->var_info + op->result_def;
                } else {
                        assert(0);
+                       return 0;
                }
 
                tssa->vars[ssa_var].no_val = no_val;
@@ -819,6 +821,7 @@ static int zend_jit_trace_restrict_ssa_var_info(const zend_op_array *op_array, c
                        info = ssa->var_info + op->result_def;
                } else {
                        assert(0);
+                       return 0;
                }
                tssa->var_info[ssa_var].type &= info->type;
                if (info->ce) {