From: Bram Moolenaar Date: Tue, 17 Jan 2017 18:48:53 +0000 (+0100) Subject: patch 8.0.0204: compiler warns for uninitialized variable X-Git-Tag: v8.0.0204 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb46f8fa14a586779f55b1c7f1648f559618322e;p=vim patch 8.0.0204: compiler warns for uninitialized variable Problem: Compiler warns for uninitialized variable. (Tony Mechelynck) Solution: When skipping set "id" to -1. --- diff --git a/src/syntax.c b/src/syntax.c index 68f01c13a..e466de898 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -6049,7 +6049,9 @@ get_id_list( } else if (name[1] == '@') { - if (!skip) + if (skip) + id = -1; + else id = syn_check_cluster(name + 2, (int)(end - p - 1)); } else diff --git a/src/version.c b/src/version.c index 263e4caa1..a99c17e7b 100644 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 204, /**/ 203, /**/