From 94db327f0621b46c7b4811e0f633ed958f8b85a3 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Thu, 22 Feb 2024 18:57:00 +0800 Subject: [PATCH] Add comments to suppress warning from wamrc (#3175) --- core/iwasm/compilation/aot_compiler.c | 3 +++ core/iwasm/compilation/aot_emit_aot_file.c | 1 + 2 files changed, 4 insertions(+) diff --git a/core/iwasm/compilation/aot_compiler.c b/core/iwasm/compilation/aot_compiler.c index 9bca81d2..81ad9b7a 100644 --- a/core/iwasm/compilation/aot_compiler.c +++ b/core/iwasm/compilation/aot_compiler.c @@ -83,6 +83,7 @@ read_leb(const uint8 *buf, const uint8 *buf_end, uint32 *p_offset, return true; } +/* NOLINTNEXTLINE */ #define read_leb_uint32(p, p_end, res) \ do { \ uint32 off = 0; \ @@ -93,6 +94,7 @@ read_leb(const uint8 *buf, const uint8 *buf_end, uint32 *p_offset, res = (uint32)res64; \ } while (0) +/* NOLINTNEXTLINE */ #define read_leb_int32(p, p_end, res) \ do { \ uint32 off = 0; \ @@ -103,6 +105,7 @@ read_leb(const uint8 *buf, const uint8 *buf_end, uint32 *p_offset, res = (int32)res64; \ } while (0) +/* NOLINTNEXTLINE */ #define read_leb_int64(p, p_end, res) \ do { \ uint32 off = 0; \ diff --git a/core/iwasm/compilation/aot_emit_aot_file.c b/core/iwasm/compilation/aot_emit_aot_file.c index 27ec1aa1..b7f3a2e4 100644 --- a/core/iwasm/compilation/aot_emit_aot_file.c +++ b/core/iwasm/compilation/aot_emit_aot_file.c @@ -1529,6 +1529,7 @@ fail_integer_too_large: return false; } +/* NOLINTNEXTLINE */ #define read_leb_uint32(p, p_end, res) \ do { \ uint64 res64; \