mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
[qfcc] Allow bare enum and named struct declarations
Got a little overzealous there
This commit is contained in:
parent
f532780dbe
commit
269a8a558a
1 changed files with 2 additions and 2 deletions
|
@ -349,7 +349,7 @@ external_def
|
|||
if (is_anonymous_struct ($1)){
|
||||
warning (0, "unnamed struct/union that defines "
|
||||
"no instances");
|
||||
} else {
|
||||
} else if (!is_enum ($1.type) && !is_struct ($1.type)) {
|
||||
warning (0, "useless type name in empty declaration");
|
||||
}
|
||||
} else if (!$1.type && $1.sym) {
|
||||
|
@ -1241,7 +1241,7 @@ local_def
|
|||
if (is_anonymous_struct ($1)){
|
||||
warning (0, "unnamed struct/union that defines "
|
||||
"no instances");
|
||||
} else {
|
||||
} else if (!is_enum ($1.type) && !is_struct ($1.type)) {
|
||||
warning (0, "useless type name in empty declaration");
|
||||
}
|
||||
} else if (!$1.type && $1.sym) {
|
||||
|
|
Loading…
Reference in a new issue