Changeset b3c36f4 for src/SynTree


Ignore:
Timestamp:
Jun 5, 2017, 11:43:18 AM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
7e003011
Parents:
fa21ac9
Message:

Added some attribute((unused)) where appropriate

Location:
src/SynTree
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Statement.cc

    rfa21ac9 rb3c36f4  
    3030Statement::Statement( std::list<Label> _labels ) : labels( _labels ) {}
    3131
    32 void Statement::print( std::ostream &, int indent ) const {}
     32void Statement::print( __attribute__((unused)) std::ostream &, __attribute__((unused)) int indent ) const {}
    3333
    3434Statement::~Statement() {}
     
    365365NullStmt::NullStmt() : CompoundStmt( std::list<Label>() ) {}
    366366
    367 void NullStmt::print( std::ostream &os, int indent ) const {
     367void NullStmt::print( std::ostream &os, __attribute__((unused)) int indent ) const {
    368368        os << "Null Statement" << endl ;
    369369}
  • src/SynTree/Type.h

    rfa21ac9 rb3c36f4  
    334334        virtual void print( std::ostream & os, int indent = 0 ) const;
    335335
    336         virtual void lookup( const std::string & name, std::list< Declaration* > & foundDecls ) const {}
     336        virtual void lookup( __attribute__((unused)) const std::string & name, __attribute__((unused)) std::list< Declaration* > & foundDecls ) const {}
    337337  protected:
    338338        virtual std::string typeString() const = 0;
  • src/SynTree/Visitor.cc

    rfa21ac9 rb3c36f4  
    122122}
    123123
    124 void Visitor::visit( BranchStmt *branchStmt ) {
     124void Visitor::visit( __attribute__((unused)) BranchStmt *branchStmt ) {
    125125}
    126126
     
    143143}
    144144
    145 void Visitor::visit( NullStmt *nullStmt ) {
     145void Visitor::visit( __attribute__((unused)) NullStmt *nullStmt ) {
    146146}
    147147
     
    445445
    446446
    447 void Visitor::visit( Subrange *subrange ) {}
    448 
    449 
    450 void Visitor::visit( Constant *constant ) {}
     447void Visitor::visit( __attribute__((unused)) Subrange *subrange ) {}
     448
     449
     450void Visitor::visit( __attribute__((unused)) Constant *constant ) {}
    451451// Local Variables: //
    452452// tab-width: 4 //
Note: See TracChangeset for help on using the changeset viewer.