Removed the extra "'}' expected" error message following a "Excess elements in struct/union initializer" error message.

This commit is contained in:
acqn 2023-11-15 21:17:05 +08:00
parent d7d1d89698
commit f6c3a1b209
1 changed files with 1 additions and 1 deletions

View File

@ -497,7 +497,7 @@ static unsigned ParseStructInit (Type* T, int* Braces, int AllowFlexibleMembers)
if (HasCurly) {
Error ("Excess elements in %s initializer", GetBasicTypeName (T));
SkipInitializer (HasCurly);
SkipInitializer (0);
}
break;
}