From 67d04e79ebdc9df3c593f3ac4465f6bdbec3709c Mon Sep 17 00:00:00 2001 From: guzhihao4 Date: Fri, 7 Apr 2023 22:52:01 +0800 Subject: [PATCH] Fix llvm15 build Regard all the optimization on strrchr Signed-off-by: guzhihao4 Change-Id: I2007c0c5f3f2118e515ffe2289bd98c0c5a7b398 --- frameworks/base/log/log_wrapper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/base/log/log_wrapper.h b/frameworks/base/log/log_wrapper.h index b09a940955a..51f5ec31cbb 100644 --- a/frameworks/base/log/log_wrapper.h +++ b/frameworks/base/log/log_wrapper.h @@ -93,7 +93,7 @@ public: return level_; } - static const char* GetBriefFileName(const char* name) + __attribute__((optnone)) static const char* GetBriefFileName(const char* name) { static const char separator = GetSeparatorCharacter(); const char* p = strrchr(name, separator); -- Gitee