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