Changeset fb2e916 for src


Ignore:
Timestamp:
Apr 15, 2024, 12:45:51 PM (8 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
710d0c8c, 76c7addb
Parents:
dc58e5d
Message:

Fix some warning

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CommonType.cc

    rdc58e5d rfb2e916  
    597597        }
    598598
    599         void postvisit( const ast::ArrayType * arr ) {}
     599        void postvisit( const ast::ArrayType * ) {}
    600600
    601601        void postvisit( const ast::ReferenceType * ref ) {
     
    641641        }
    642642
    643         void postvisit( const ast::FunctionType * func) {}
    644 
    645         void postvisit( const ast::StructInstType * inst ) {}
    646 
    647         void postvisit( const ast::UnionInstType * inst ) {}
     643        void postvisit( const ast::FunctionType * ) {}
     644
     645        void postvisit( const ast::StructInstType * ) {}
     646
     647        void postvisit( const ast::UnionInstType * ) {}
    648648
    649649        void postvisit( const ast::EnumInstType * enumInst ) {
     
    660660        void postvisit( const ast::TypeInstType * ) {}
    661661
    662         void postvisit( const ast::TupleType * tuple ) {}
     662        void postvisit( const ast::TupleType * ) {}
    663663
    664664        void postvisit( const ast::VarArgsType * ) {}
  • src/Validate/ReplacePseudoFunc.cpp

    rdc58e5d rfb2e916  
    5555                            typedResult.strict_as<ast::ApplicationExpr>();
    5656                        return ast::deepCopy(ret);
    57                     } else if (auto posType =
    58                                    argAsDecl->type.as<ast::EnumAttrType>()) {
     57                    } else if (argAsDecl->type.as<ast::EnumAttrType>()) {
    5958                        std::cerr << "PseudoFunc: succ/pred should not be applied on EnumAttrType directly" << std::endl;
    6059                    }
Note: See TracChangeset for help on using the changeset viewer.