mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-17 01:31:25 +00:00
Removed a redundant switch and added a default case to the mixin parsing code to shut GCC up.
This commit is contained in:
parent
c0b9bb6e76
commit
6ccbccc3de
1 changed files with 7 additions and 7 deletions
|
@ -388,22 +388,22 @@ ZCCCompiler::ZCCCompiler(ZCC_AST &ast, DObject *_outer, PSymbolTable &_symbols,
|
|||
ZCC_TreeNode *node = ast.TopNode;
|
||||
PSymbolTreeNode *tnode;
|
||||
|
||||
// [pbeta] Mixins must be processed before everything else.
|
||||
// [pbeta] Anything that must be processed before classes, structs, etc. should go here.
|
||||
do
|
||||
{
|
||||
switch (node->NodeType)
|
||||
{
|
||||
// [pbeta] Mixins must be processed before everything else.
|
||||
case AST_MixinDef:
|
||||
if ((tnode = AddTreeNode(static_cast<ZCC_NamedNode *>(node)->NodeName, node, GlobalTreeNodes)))
|
||||
{
|
||||
switch (node->NodeType)
|
||||
{
|
||||
case AST_MixinDef:
|
||||
ProcessMixin(static_cast<ZCC_MixinDef *>(node), tnode);
|
||||
break;
|
||||
}
|
||||
ProcessMixin(static_cast<ZCC_MixinDef *>(node), tnode);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break; // Shut GCC up.
|
||||
}
|
||||
node = node->SiblingNext;
|
||||
} while (node != ast.TopNode);
|
||||
|
|
Loading…
Reference in a new issue