comparison src/vim9execute.c @ 28946:e78e398fff3d v8.2.4995

patch 8.2.4995: still a compiler warning for possibly uninitialized variable Commit: https://github.com/vim/vim/commit/dafef51b1cbe8aa836c4cfa52623f775bd85a190 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 21 21:55:55 2022 +0100 patch 8.2.4995: still a compiler warning for possibly uninitialized variable Problem: Still a compiler warning for possibly uninitialized variable. (Tony Mechelynck) Solution: Initialize variables.
author Bram Moolenaar <Bram@vim.org>
date Sat, 21 May 2022 23:00:03 +0200
parents b02044bc8c20
children abdea69d21b6
comparison
equal deleted inserted replaced
28945:eee8b659f29c 28946:e78e398fff3d
6277 ex_disassemble(exarg_T *eap) 6277 ex_disassemble(exarg_T *eap)
6278 { 6278 {
6279 char_u *arg = eap->arg; 6279 char_u *arg = eap->arg;
6280 ufunc_T *ufunc; 6280 ufunc_T *ufunc;
6281 dfunc_T *dfunc; 6281 dfunc_T *dfunc;
6282 isn_T *instr; 6282 isn_T *instr = NULL; // init to shut up gcc warning
6283 int instr_count; 6283 int instr_count = 0; // init to shut up gcc warning
6284 compiletype_T compile_type = CT_NONE; 6284 compiletype_T compile_type = CT_NONE;
6285 6285
6286 ufunc = find_func_by_name(arg, &compile_type); 6286 ufunc = find_func_by_name(arg, &compile_type);
6287 if (ufunc == NULL) 6287 if (ufunc == NULL)
6288 return; 6288 return;