aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/eval.c2
-rw-r--r--src/nvim/undo.c2
-rw-r--r--src/nvim/window.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 2685cf5cea..10d6bbf714 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -3935,7 +3935,7 @@ static int eval6(char_u **arg, typval_T *rettv, int evaluate, int want_string)
int op;
varnumber_T n1, n2;
bool use_float = false;
- float_T f1 = 0, f2;
+ float_T f1 = 0, f2 = 0;
bool error = false;
/*
diff --git a/src/nvim/undo.c b/src/nvim/undo.c
index 8bb1b9e745..0a32d9b872 100644
--- a/src/nvim/undo.c
+++ b/src/nvim/undo.c
@@ -1818,7 +1818,7 @@ void undo_time(long step, bool sec, bool file, bool absolute)
u_header_T *uhp = NULL;
u_header_T *last;
int mark;
- int nomark;
+ int nomark = 0; // shut up compiler
int round;
bool dosec = sec;
bool dofile = file;
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 9d8cd21dba..d9898533da 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -3847,7 +3847,7 @@ static void tabpage_check_windows(tabpage_T *old_curtab)
*/
void goto_tabpage(int n)
{
- tabpage_T *tp;
+ tabpage_T *tp = NULL; // shut up compiler
tabpage_T *ttp;
int i;