Mercurial > vim
comparison src/spell.c @ 20810:f9245f58c134 v8.2.0957
patch 8.2.0957: compiler warning for uninitialized variable
Commit: https://github.com/vim/vim/commit/2d4070d3b02e775a6f3d5ef52265add270e09a4f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 11 12:30:13 2020 +0200
patch 8.2.0957: compiler warning for uninitialized variable
Problem: Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution: Initialize one variable.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 11 Jun 2020 12:45:04 +0200 |
parents | 411348fb49ba |
children | 9368f75273d9 |
comparison
equal
deleted
inserted
replaced
20809:f804e6f0c0bd | 20810:f9245f58c134 |
---|---|
205 mi.mi_word = ptr; | 205 mi.mi_word = ptr; |
206 mi.mi_fend = ptr; | 206 mi.mi_fend = ptr; |
207 if (spell_iswordp(mi.mi_fend, wp)) | 207 if (spell_iswordp(mi.mi_fend, wp)) |
208 { | 208 { |
209 int prev_upper; | 209 int prev_upper; |
210 int this_upper; | 210 int this_upper = FALSE; // init for gcc |
211 | 211 |
212 if (use_camel_case) | 212 if (use_camel_case) |
213 { | 213 { |
214 c = PTR2CHAR(mi.mi_fend); | 214 c = PTR2CHAR(mi.mi_fend); |
215 this_upper = SPELL_ISUPPER(c); | 215 this_upper = SPELL_ISUPPER(c); |