Changeset b3c36f4 for src/SynTree
- Timestamp:
- Jun 5, 2017, 11:43:18 AM (7 years ago)
- 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
- Location:
- src/SynTree
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.cc
rfa21ac9 rb3c36f4 30 30 Statement::Statement( std::list<Label> _labels ) : labels( _labels ) {} 31 31 32 void Statement::print( std::ostream &,int indent ) const {}32 void Statement::print( __attribute__((unused)) std::ostream &, __attribute__((unused)) int indent ) const {} 33 33 34 34 Statement::~Statement() {} … … 365 365 NullStmt::NullStmt() : CompoundStmt( std::list<Label>() ) {} 366 366 367 void NullStmt::print( std::ostream &os, int indent ) const {367 void NullStmt::print( std::ostream &os, __attribute__((unused)) int indent ) const { 368 368 os << "Null Statement" << endl ; 369 369 } -
src/SynTree/Type.h
rfa21ac9 rb3c36f4 334 334 virtual void print( std::ostream & os, int indent = 0 ) const; 335 335 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 {} 337 337 protected: 338 338 virtual std::string typeString() const = 0; -
src/SynTree/Visitor.cc
rfa21ac9 rb3c36f4 122 122 } 123 123 124 void Visitor::visit( BranchStmt *branchStmt ) {124 void Visitor::visit( __attribute__((unused)) BranchStmt *branchStmt ) { 125 125 } 126 126 … … 143 143 } 144 144 145 void Visitor::visit( NullStmt *nullStmt ) {145 void Visitor::visit( __attribute__((unused)) NullStmt *nullStmt ) { 146 146 } 147 147 … … 445 445 446 446 447 void Visitor::visit( Subrange *subrange ) {}448 449 450 void Visitor::visit( Constant *constant ) {}447 void Visitor::visit( __attribute__((unused)) Subrange *subrange ) {} 448 449 450 void Visitor::visit( __attribute__((unused)) Constant *constant ) {} 451 451 // Local Variables: // 452 452 // tab-width: 4 //
Note: See TracChangeset
for help on using the changeset viewer.