Changes in src/SymTab/Validate.cc [af397ef8:c6d2e93]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
raf397ef8 rc6d2e93 66 66 #include "ResolvExpr/typeops.h" 67 67 68 #include "SynTree/Attribute.h" 68 69 #include "SynTree/Expression.h" 69 70 #include "SynTree/Mutator.h" … … 610 611 returnVals = functionDecl->get_functionType()->get_returnVals(); 611 612 } 612 void ReturnChecker::postvisit( __attribute__((unused))FunctionDecl * functionDecl ) {613 void ReturnChecker::postvisit( FunctionDecl * functionDecl ) { 613 614 returnVals = returnValsStack.top(); 614 615 returnValsStack.pop(); … … 927 928 ret->set_name( toString( "_retval_", CodeGen::genName( functionDecl ) ) ); 928 929 } 930 ret->get_attributes().push_back( new Attribute( "unused" ) ); 929 931 } 930 932 }
Note:
See TracChangeset
for help on using the changeset viewer.