Ignore:
Timestamp:
May 30, 2024, 2:36:08 PM (5 weeks ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
0f5e8cd
Parents:
91b9e10
Message:

It seems clang uses different scoping rules for the trailing return of a scoped runction declaration. This form seems compatable with clang and gcc. Since I switched over to clang for testing I also cleaned up all errors that clang or gcc mentioned.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Unify.cpp

    r91b9e10 r822332e  
    274274        void previsit( const ast::Node * ) { visit_children = false; }
    275275
    276         void postvisit( const ast::VoidType * vt) {
    277                 result = dynamic_cast< const ast::VoidType * >( type2 ); 
     276        void postvisit( const ast::VoidType * ) {
     277                result = dynamic_cast< const ast::VoidType * >( type2 );
    278278                        // || tryToUnifyWithEnumValue(vt, type2, tenv, need, have, open, noWiden());
    279279                ;
     
    610610        }
    611611
    612         void postvisit( const ast::VarArgsType * vat) {
     612        void postvisit( const ast::VarArgsType * ) {
    613613                result = dynamic_cast< const ast::VarArgsType * >( type2 );
    614614                        // || tryToUnifyWithEnumValue(vat, type2, tenv, need, have, open, noWiden());
    615615        }
    616616
    617         void postvisit( const ast::ZeroType * zt) {
     617        void postvisit( const ast::ZeroType * ) {
    618618                result = dynamic_cast< const ast::ZeroType * >( type2 );
    619619                        // || tryToUnifyWithEnumValue(zt, type2, tenv, need, have, open, noWiden());
    620620        }
    621621
    622         void postvisit( const ast::OneType * ot) {
     622        void postvisit( const ast::OneType * ) {
    623623                result = dynamic_cast< const ast::OneType * >( type2 );
    624624                        // || tryToUnifyWithEnumValue(ot, type2, tenv, need, have, open, noWiden());
Note: See TracChangeset for help on using the changeset viewer.