comparison src/syntax.c @ 10629:16fc46021e51 v8.0.0204

patch 8.0.0204: compiler warns for uninitialized variable commit https://github.com/vim/vim/commit/eb46f8fa14a586779f55b1c7f1648f559618322e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 17 19:48:53 2017 +0100 patch 8.0.0204: compiler warns for uninitialized variable Problem: Compiler warns for uninitialized variable. (Tony Mechelynck) Solution: When skipping set "id" to -1.
author Christian Brabandt <cb@256bit.org>
date Tue, 17 Jan 2017 20:00:04 +0100
parents 5ac9d7920f11
children 4f3decf25b7d
comparison
equal deleted inserted replaced
10628:91d55e7056ac 10629:16fc46021e51
6047 id = SYNID_CONTAINED; 6047 id = SYNID_CONTAINED;
6048 id += current_syn_inc_tag; 6048 id += current_syn_inc_tag;
6049 } 6049 }
6050 else if (name[1] == '@') 6050 else if (name[1] == '@')
6051 { 6051 {
6052 if (!skip) 6052 if (skip)
6053 id = -1;
6054 else
6053 id = syn_check_cluster(name + 2, (int)(end - p - 1)); 6055 id = syn_check_cluster(name + 2, (int)(end - p - 1));
6054 } 6056 }
6055 else 6057 else
6056 { 6058 {
6057 /* 6059 /*