Skip to content

Commit eb46f8f

Browse files
committed
patch 8.0.0204: compiler warns for uninitialized variable
Problem: Compiler warns for uninitialized variable. (Tony Mechelynck) Solution: When skipping set "id" to -1.
1 parent 6e78e27 commit eb46f8f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/syntax.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6049,7 +6049,9 @@ get_id_list(
60496049
}
60506050
else if (name[1] == '@')
60516051
{
6052-
if (!skip)
6052+
if (skip)
6053+
id = -1;
6054+
else
60536055
id = syn_check_cluster(name + 2, (int)(end - p - 1));
60546056
}
60556057
else

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
204,
767769
/**/
768770
203,
769771
/**/

0 commit comments

Comments
 (0)