提交 0ed4bab0 编写于 作者: S suwenxiang

Description: Mini platform GN + iccarm compile and build

IssueNo: https://gitee.com/openharmony/arkui_ace_engine_lite/issues/I5JLZ7
Feature or Bugfix: Feature
Binary Source: No
Signed-off-by: Nsuwenxiang <suwenxiang@huawei.com>
上级 da1381b1
...@@ -273,7 +273,7 @@ lite_library("ui") { ...@@ -273,7 +273,7 @@ lite_library("ui") {
} else { } else {
cflags = [ cflags = [
"--diag_suppress", "--diag_suppress",
"Pa093,Pa137,Pe177,Pe186,Pe226,Pe366,Pe367,Pe550", "Pa093,Pa137,Pe177,Pe186,Pe223,Pe226,Pe366,Pe367,Pe550,Pe940",
] ]
cflags_cc = cflags cflags_cc = cflags
} }
......
...@@ -235,7 +235,8 @@ bool Image::PreParse(const char *src) ...@@ -235,7 +235,8 @@ bool Image::PreParse(const char *src)
return false; return false;
} }
path_ = path; path_ = path;
bool isSucess = false; bool isSucess = true;
#if ENABLE_JPEG_AND_PNG
ImageType imageType = CheckImgType(src); ImageType imageType = CheckImgType(src);
if (imageType == IMG_PNG) { if (imageType == IMG_PNG) {
isSucess = SetPNGSrc(src); isSucess = SetPNGSrc(src);
...@@ -247,6 +248,7 @@ bool Image::PreParse(const char *src) ...@@ -247,6 +248,7 @@ bool Image::PreParse(const char *src)
srcType_ = IMG_SRC_UNKNOWN; srcType_ = IMG_SRC_UNKNOWN;
return false; return false;
} }
#endif
return isSucess; return isSucess;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册