diff --git a/frameworks/featured/BUILD.gn b/frameworks/featured/BUILD.gn index 57ef026d0cd827bd76fa6d7065d7d08971dc5e50..2956dc17a3db47ec4ec012685378cafe35e1fc16 100644 --- a/frameworks/featured/BUILD.gn +++ b/frameworks/featured/BUILD.gn @@ -31,6 +31,8 @@ config("hilog_config") { if (ohos_hiviewdfx_disable_privacy_feature) { defines = [ "DISABLE_HILOG_PRIVACY" ] } + cflags = [ "-Wall" ] + cflags_cc = [ "-O2" ] } lite_library("hilog_static") {