mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-17 14:51:51 +00:00
[qfcc] Treat invalid initialization as just an error
I'm not sure why I treated it as an internal error.
This commit is contained in:
parent
2471147488
commit
f390089e66
1 changed files with 2 additions and 1 deletions
|
@ -232,7 +232,8 @@ build_element_chain (element_chain_t *element_chain, const type_t *type,
|
|||
} else if (is_array (type)) {
|
||||
state.type = dereference_type (type);
|
||||
} else {
|
||||
internal_error (eles, "invalid initialization");
|
||||
error (eles, "invalid initialization");
|
||||
return;
|
||||
}
|
||||
while (ele) {
|
||||
if (ele->designator) {
|
||||
|
|
Loading…
Reference in a new issue