mirror of
https://github.com/openharmony/third_party_libsoup.git
synced 2026-07-01 15:14:10 -04:00
libsoup x86_64 Signed-off-by: huang-xl<huangxiaolong1@huawei.com>
Signed-off-by: huang-xl <huangxiaolong1@huawei.com> Change-Id: I9f1b9520d34eb92aa693e751543a674633849b4f
This commit is contained in:
@@ -22,7 +22,7 @@ config("libsoup_config") {
|
||||
"-Wno-sign-compare",
|
||||
"-Wno-#pragma-messages",
|
||||
"-DOHOS_GLIB_COMPATIBLE",
|
||||
"-DOHOS_OPT_COMPAT",
|
||||
"-fno-signed-char",
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -638,14 +638,8 @@ sniff_feed_or_html (SoupContentSniffer *sniffer, SoupBuffer *buffer)
|
||||
goto text_html;
|
||||
|
||||
/* Skip a leading UTF-8 BOM */
|
||||
// ohos.opt.compat.2001 x86_64 -Wtautological-constant-out-of-range-compare
|
||||
#ifdef OHOS_OPT_COMPAT
|
||||
if (resource[0] == (char)0xEF && resource[1] == (char)0xBB && resource[2] == (char)0xBF)
|
||||
pos = 3;
|
||||
#else
|
||||
if (resource[0] == 0xEF && resource[1] == 0xBB && resource[2] == 0xBF)
|
||||
pos = 3;
|
||||
#endif
|
||||
|
||||
look_for_tag:
|
||||
if (pos > resource_length)
|
||||
|
||||
Reference in New Issue
Block a user