mirror of
https://github.com/cc65/cc65.git
synced 2025-01-16 13:31:16 +00:00
Fixed wrong "Mixed declarations and code are not supported in cc65" error message when it should be "Expression expected".
This commit is contained in:
parent
c0a2021d9a
commit
47e7ed2f56
@ -1412,9 +1412,9 @@ static void Primary (ExprDesc* E)
|
||||
} else {
|
||||
/* Let's see if this is a C99-style declaration */
|
||||
DeclSpec Spec;
|
||||
ParseDeclSpec (&Spec, TS_DEFAULT_TYPE_INT, SC_AUTO);
|
||||
ParseDeclSpec (&Spec, TS_DEFAULT_TYPE_NONE, SC_AUTO);
|
||||
|
||||
if (Spec.Type->C != T_END) {
|
||||
if ((Spec.Flags & DS_DEF_TYPE) == 0) {
|
||||
/* Recognized but not supported */
|
||||
Error ("Mixed declarations and code are not supported in cc65");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user