Changeset 9ff56e7


Ignore:
Timestamp:
Jul 6, 2017, 4:13:46 PM (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:
3873b5a1, e182ce3
Parents:
577659b
Message:

Removed several new warnings

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/InstantiateGeneric.cc

    r577659b r9ff56e7  
    171171                Type* postmutate( UnionInstType *inst );
    172172
    173                 void premutate( FunctionType * ftype ) {
     173                void premutate( __attribute__((unused)) FunctionType * ftype ) {
    174174                        GuardValue( inFunctionType );
    175175                        inFunctionType = true;
  • src/InitTweak/GenInit.cc

    r577659b r9ff56e7  
    7171                // that need to be constructed or destructed
    7272                void previsit( StructDecl *aggregateDecl );
    73                 void previsit( UnionDecl *aggregateDecl ) { visit_children = false; }
    74                 void previsit( EnumDecl *aggregateDecl ) { visit_children = false; }
    75                 void previsit( TraitDecl *aggregateDecl ) { visit_children = false; }
    76                 void previsit( TypeDecl *typeDecl ) { visit_children = false; }
    77                 void previsit( TypedefDecl *typeDecl ) { visit_children = false; }
    78 
    79                 void previsit( FunctionType *funcType ) { visit_children = false; }
     73                void previsit( __attribute__((unused)) UnionDecl    * aggregateDecl ) { visit_children = false; }
     74                void previsit( __attribute__((unused)) EnumDecl     * aggregateDecl ) { visit_children = false; }
     75                void previsit( __attribute__((unused)) TraitDecl    * aggregateDecl ) { visit_children = false; }
     76                void previsit( __attribute__((unused)) TypeDecl     * typeDecl )      { visit_children = false; }
     77                void previsit( __attribute__((unused)) TypedefDecl  * typeDecl )      { visit_children = false; }
     78                void previsit( __attribute__((unused)) FunctionType * funcType )      { visit_children = false; }
    8079
    8180                void previsit( CompoundStmt * compoundStmt );
     
    336335        }
    337336
    338         void CtorDtor::previsit( CompoundStmt * compoundStmt ) {
     337        void CtorDtor::previsit( __attribute__((unused)) CompoundStmt * compoundStmt ) {
    339338                GuardScope( managedTypes );
    340339        }
  • src/Parser/parser.yy

    r577659b r9ff56e7  
    23322332        | TYPEGENname
    23332333        | CONST
    2334                 { $$ = Token{ new string( "__const__" ) }; }
     2334                { $$ = Token{ new string( "__const__" ), { nullptr, -1 } }; }
    23352335        ;
    23362336
  • src/ResolvExpr/CurrentObject.cc

    r577659b r9ff56e7  
    127127                }
    128128
    129                 virtual void print( std::ostream & out, Indenter indent ) const {
     129                virtual void print( std::ostream & out, __attribute__((unused)) Indenter indent ) const {
    130130                        out << "SimpleIterator(" << type << ")";
    131131                }
Note: See TracChangeset for help on using the changeset viewer.