Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    rc6d2e93 raf397ef8  
    6666#include "ResolvExpr/typeops.h"
    6767
    68 #include "SynTree/Attribute.h"
    6968#include "SynTree/Expression.h"
    7069#include "SynTree/Mutator.h"
     
    611610                returnVals = functionDecl->get_functionType()->get_returnVals();
    612611        }
    613         void ReturnChecker::postvisit( FunctionDecl * functionDecl ) {
     612        void ReturnChecker::postvisit( __attribute__((unused)) FunctionDecl * functionDecl ) {
    614613                returnVals = returnValsStack.top();
    615614                returnValsStack.pop();
     
    928927                                ret->set_name( toString( "_retval_", CodeGen::genName( functionDecl ) ) );
    929928                        }
    930                         ret->get_attributes().push_back( new Attribute( "unused" ) );
    931929                }
    932930        }
Note: See TracChangeset for help on using the changeset viewer.