mirror of
https://github.com/openharmony/hiviewdfx_hilog_lite.git
synced 2026-07-01 06:41:57 -04:00
@@ -33,7 +33,6 @@ config("hilog_config") {
|
||||
"-fno-common",
|
||||
"-fno-strict-aliasing",
|
||||
"-O2",
|
||||
"-Wno-atomic-alignment",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,6 +20,13 @@
|
||||
#include "unistd.h"
|
||||
#include <log.h>
|
||||
|
||||
#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 <stdatomic.h>
|
||||
#include "hilog_trace.h"
|
||||
|
||||
Reference in New Issue
Block a user