diff options
Diffstat (limited to 'src/mem/slicc/ast/ExprStatementAST.py')
-rw-r--r-- | src/mem/slicc/ast/ExprStatementAST.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/slicc/ast/ExprStatementAST.py b/src/mem/slicc/ast/ExprStatementAST.py index 898fccf3d..acb69f799 100644 --- a/src/mem/slicc/ast/ExprStatementAST.py +++ b/src/mem/slicc/ast/ExprStatementAST.py @@ -42,8 +42,8 @@ class ExprStatementAST(StatementAST): # The return type must be void if actual_type != self.symtab.find("void", Type): - self.expr.error("Non-void return must not be ignored, " + \ - "return type is '%s'", actual_type.ident) + self.expr.warning("Non-void return ignored, " + \ + "return type is '%s'", actual_type.ident) def findResources(self, resources): self.expr.findResources(resources) |