From 3363586cbbf507937a6be74397f4ffd5c6966fe5 Mon Sep 17 00:00:00 2001 From: dongly Date: Wed, 3 Aug 2022 00:09:49 +0800 Subject: Fix some compilation warning (#5744) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix some compilation warning * 补充修正一些数据类型的使用错误 Co-authored-by: Meco Man <920369182@qq.com> --- libcpu/arm/common/showmem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcpu') diff --git a/libcpu/arm/common/showmem.c b/libcpu/arm/common/showmem.c index 25b18d7fcf..2ece137a40 100644 --- a/libcpu/arm/common/showmem.c +++ b/libcpu/arm/common/showmem.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2021, RT-Thread Development Team + * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * @@ -12,7 +12,7 @@ void rt_hw_show_memory(rt_uint32_t addr, rt_uint32_t size) { - int i = 0, j = 0; + unsigned int i = 0, j = 0; RT_ASSERT(addr); -- cgit v1.3.1