mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
symtab: add missing initializations
* src/symtab.c (semantic_type_new): Here.
This commit is contained in:
@@ -111,8 +111,8 @@ semantic_type_new (uniqstr tag, const location *loc)
|
|||||||
|
|
||||||
uniqstr_assert (tag);
|
uniqstr_assert (tag);
|
||||||
res->tag = tag;
|
res->tag = tag;
|
||||||
if (loc)
|
res->location = loc ? *loc : empty_location;
|
||||||
res->location = *loc;
|
res->status = undeclared;
|
||||||
for (int i = 0; i < CODE_PROPS_SIZE; ++i)
|
for (int i = 0; i < CODE_PROPS_SIZE; ++i)
|
||||||
code_props_none_init (&res->props[i]);
|
code_props_none_init (&res->props[i]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user