comparison src/indent.c @ 28540:63e9b0016a6c v8.2.4794

patch 8.2.4794: compiler warning for not initialized variable Commit: https://github.com/vim/vim/commit/4c84dd33ad739237bb38bb4e51702af972b5e507 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 20 10:22:54 2022 +0100 patch 8.2.4794: compiler warning for not initialized variable Problem: Compiler warning for not initialized variable. Solution: Initialize the variable. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Wed, 20 Apr 2022 11:30:05 +0200
parents b6f2f545f8cc
children 2bd5cb054180
comparison
equal deleted inserted replaced
28539:86ad381f275f 28540:63e9b0016a6c
1044 * op_reindent - handle reindenting a block of lines. 1044 * op_reindent - handle reindenting a block of lines.
1045 */ 1045 */
1046 void 1046 void
1047 op_reindent(oparg_T *oap, int (*how)(void)) 1047 op_reindent(oparg_T *oap, int (*how)(void))
1048 { 1048 {
1049 long i; 1049 long i = 0;
1050 char_u *l; 1050 char_u *l;
1051 int amount; 1051 int amount;
1052 linenr_T first_changed = 0; 1052 linenr_T first_changed = 0;
1053 linenr_T last_changed = 0; 1053 linenr_T last_changed = 0;
1054 linenr_T start_lnum = curwin->w_cursor.lnum; 1054 linenr_T start_lnum = curwin->w_cursor.lnum;