Changeset bd41764


Ignore:
Timestamp:
Nov 8, 2017, 5:15:54 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
954908d
Parents:
e35f30a
Message:

Fixed new clang-6.0 warnings

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/Keywords.cc

    re35f30a rbd41764  
    553553                        ),
    554554                        new ListInit(
    555                                 map_range < std::list<Initializer*> > ( args, [this](DeclarationWithType * var ){
     555                                map_range < std::list<Initializer*> > ( args, [](DeclarationWithType * var ){
    556556                                        Type * type = var->get_type()->clone();
    557557                                        type->set_mutex( false );
  • src/InitTweak/InitTweak.cc

    re35f30a rbd41764  
    105105        public:
    106106                InitImpl( Initializer * init ) : init( init ) {}
     107                virtual ~InitImpl() = default;
    107108
    108109                virtual std::list< Expression * > next( __attribute((unused)) std::list< Expression * > & indices ) {
     
    121122        public:
    122123                ExprImpl( Expression * expr ) : arg( expr ) {}
    123 
    124                 ~ExprImpl() { delete arg; }
     124                virtual ~ExprImpl() { delete arg; }
    125125
    126126                virtual std::list< Expression * > next( std::list< Expression * > & indices ) {
Note: See TracChangeset for help on using the changeset viewer.