diff --git a/frameworks/featured/hiview_log.c b/frameworks/featured/hiview_log.c index 17446c4f1ace2a13c2c426ecea28cdf79e0bed56..765031e526767e62c50aa56a2e1bd12f71c307e5 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