summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-12 21:04:23 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-12 21:04:23 +0200
commit8f13d82fa6ac6faa1a91076e99000a8f02180e8e (patch)
tree01b6677b39a50b1d4914bf3406cb252c32c7eb88 /src
parentb0fa5e17c587d9c71596bd10836918af713ffff6 (diff)
patch 8.2.1670: a couple of gcc compiler warningsv8.2.1670
Problem: A couple of gcc compiler warnings. Solution: Initialize local variables. (Dominique Pellé, closes #6944)
Diffstat (limited to 'src')
-rw-r--r--src/memline.c2
-rw-r--r--src/option.c2
-rw-r--r--src/version.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/memline.c b/src/memline.c
index 1c594d453a..54f8c19b0f 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -2634,7 +2634,7 @@ add_text_props_for_append(
int n;
char_u *props;
int new_len = 0; // init for gcc
- char_u *new_line;
+ char_u *new_line = NULL;
textprop_T prop;
// Make two rounds:
diff --git a/src/option.c b/src/option.c
index 6ebc2bd9b5..dbb086df14 100644
--- a/src/option.c
+++ b/src/option.c
@@ -683,7 +683,7 @@ set_string_default(char *name, char_u *val)
static char_u *
find_dup_item(char_u *origval, char_u *newval, long_u flags)
{
- int bs;
+ int bs = 0;
size_t newlen;
char_u *s;
diff --git a/src/version.c b/src/version.c
index 4f8b503dd7..b819c6d751 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1670,
+/**/
1669,
/**/
1668,