diff --git a/frameworks/libhilog/BUILD.gn b/frameworks/libhilog/BUILD.gn index e3bb1bea1d4c84b6ed56f1c7f0fd86a354c18bbf..3debbc7005901ed6a3b2f2efdddb48ee4aceb723 100644 --- a/frameworks/libhilog/BUILD.gn +++ b/frameworks/libhilog/BUILD.gn @@ -134,6 +134,8 @@ ohos_source_set("libhilog_base_source") { sources = [ "$libhilog_base_root/hilog_base.c" ] sources += vsnprintf_sources + cflags_cc = [ "-Wno-implicit-function-declaration" ] + defines = [ "__RECV_MSG_WITH_UCRED_", "HILOG_PROHIBIT_ALLOCATION",