From c76b09a70ed3fba4eb5156261fcd7713040d3f30 Mon Sep 17 00:00:00 2001 From: liuyifei Date: Fri, 20 Jun 2025 08:07:39 +0000 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liuyifei --- frameworks/featured/hiview_log.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frameworks/featured/hiview_log.c b/frameworks/featured/hiview_log.c index 17446c4..765031e 100644 --- a/frameworks/featured/hiview_log.c +++ b/frameworks/featured/hiview_log.c @@ -19,7 +19,12 @@ #include "fcntl.h" #include "unistd.h" #include +#ifdef __IAR_SYSTEMS_ICC__ +// IAR-specific code to ignore the warning +#pragma diag_suppress=Pe161 +#else #pragma GCC diagnostic ignored "-Watomic-alignment" +#endif #ifndef LOSCFG_BASE_CORE_HILOG #include -- Gitee