Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    raf397ef8 rc6d2e93  
    6666#include "ResolvExpr/typeops.h"
    6767
     68#include "SynTree/Attribute.h"
    6869#include "SynTree/Expression.h"
    6970#include "SynTree/Mutator.h"
     
    610611                returnVals = functionDecl->get_functionType()->get_returnVals();
    611612        }
    612         void ReturnChecker::postvisit( __attribute__((unused)) FunctionDecl * functionDecl ) {
     613        void ReturnChecker::postvisit( FunctionDecl * functionDecl ) {
    613614                returnVals = returnValsStack.top();
    614615                returnValsStack.pop();
     
    927928                                ret->set_name( toString( "_retval_", CodeGen::genName( functionDecl ) ) );
    928929                        }
     930                        ret->get_attributes().push_back( new Attribute( "unused" ) );
    929931                }
    930932        }
Note: See TracChangeset for help on using the changeset viewer.