From 4641b40bd9d8afca8918b6cbd6703df297e78aba Mon Sep 17 00:00:00 2001 From: Siyuan Feng Date: Mon, 26 Jun 2023 09:19:25 +0800 Subject: [PATCH] [Minor] Fix Compilation Warnings (#15154) * [Minor] Fix Compilation Warnings This PR fixes serval compilation warnings with clang-15 * fix --- src/arith/iter_affine_map.cc | 2 +- src/target/source/codegen_c_host.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arith/iter_affine_map.cc b/src/arith/iter_affine_map.cc index f6d0020f57b9..f8a36daf5328 100644 --- a/src/arith/iter_affine_map.cc +++ b/src/arith/iter_affine_map.cc @@ -226,7 +226,7 @@ class IterMapRewriter : public ExprMutator { /** * Rewrite expr to iter sum pattern - * \parma expr The input expression + * \param expr The input expression * \return The rewritten iter sum pattern * \note The result base may contain items that is not */ diff --git a/src/target/source/codegen_c_host.h b/src/target/source/codegen_c_host.h index c4db6347050a..694104afc0af 100644 --- a/src/target/source/codegen_c_host.h +++ b/src/target/source/codegen_c_host.h @@ -61,7 +61,7 @@ class CodeGenCHost : public CodeGenC { // overload visitor functions void VisitExpr_(const BroadcastNode* op, std::ostream& os) final; // NOLINT(*) - void VisitExpr_(const CallNode* op, std::ostream& os); // NOLINT(*) + void VisitExpr_(const CallNode* op, std::ostream& os) override; // NOLINT(*) // overload min and max to use the ternary operator, so we don't rely on the // standard library implementations void VisitExpr_(const MinNode* op, std::ostream& os) final; // NOLINT(*)