mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
vim-patch:8.2.3943: compiler warning from gcc for uninitialized variable
Problem: Compiler warning from gcc for uninitialized variable.
Solution: Initialize variable. (closes vim/vim#9429)
491669701c
This commit is contained in:
parent
fb5587d2be
commit
82304038a2
@ -1536,7 +1536,7 @@ static void diff_read(int idx_orig, int idx_new, diffio_T *dio)
|
||||
long off;
|
||||
int i;
|
||||
int notset = true; // block "*dp" not set yet
|
||||
diffhunk_T *hunk;
|
||||
diffhunk_T *hunk = NULL; // init to avoid gcc warning
|
||||
enum {
|
||||
DIFF_ED,
|
||||
DIFF_UNIFIED,
|
||||
|
Loading…
Reference in New Issue
Block a user