Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
f332a06e
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
1 年多 前同步成功
通知
460
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
f332a06e
编写于
4月 04, 2023
作者:
O
openharmony_ci
提交者:
Gitee
4月 04, 2023
浏览文件
操作
浏览文件
下载
差异文件
!1134 Ignore warnings for llvm15 upgrade
Merge pull request !1134 from enable_llvm15
上级
249ea71a
1ba32406
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
13 addition
and
4 deletion
+13
-4
BUILD.gn
BUILD.gn
+4
-0
apps/shell/src/main.c
apps/shell/src/main.c
+1
-1
kernel/base/core/los_task.c
kernel/base/core/los_task.c
+1
-1
kernel/base/vm/los_vm_phys.c
kernel/base/vm/los_vm_phys.c
+1
-1
lib/libc/musl/Makefile
lib/libc/musl/Makefile
+1
-0
testsuites/unittest/process/basic/process/smoke/process_test_008.cpp
...unittest/process/basic/process/smoke/process_test_008.cpp
+2
-0
testsuites/unittest/process/basic/process/smoke/process_test_009.cpp
...unittest/process/basic/process/smoke/process_test_009.cpp
+1
-1
tools/build/mk/los_config.mk
tools/build/mk/los_config.mk
+2
-0
未找到文件。
BUILD.gn
浏览文件 @
f332a06e
...
...
@@ -202,6 +202,10 @@ config("warn_config") {
]
if (defined(LOSCFG_COMPILER_CLANG_LLVM)) {
cflags += [ "-Wno-address-of-packed-member" ]
cflags += [
"-Wno-unused-but-set-variable",
"-Wno-strict-prototypes",
]
}
asmflags = cflags
}
...
...
apps/shell/src/main.c
浏览文件 @
f332a06e
...
...
@@ -44,7 +44,7 @@
ShellCB
*
g_shellCB
=
NULL
;
ShellCB
*
OsGetShellCb
()
ShellCB
*
OsGetShellCb
(
void
)
{
return
g_shellCB
;
}
...
...
kernel/base/core/los_task.c
浏览文件 @
f332a06e
...
...
@@ -394,7 +394,7 @@ STATIC VOID OsTaskResourcesToFree(LosTaskCB *taskCB)
return
;
}
LITE_OS_SEC_TEXT
VOID
OsTaskCBRecycleToFree
()
LITE_OS_SEC_TEXT
VOID
OsTaskCBRecycleToFree
(
void
)
{
UINT32
intSave
;
...
...
kernel/base/vm/los_vm_phys.c
浏览文件 @
f332a06e
...
...
@@ -52,7 +52,7 @@ STATIC struct VmPhysArea g_physArea[] = {
struct
VmPhysSeg
g_vmPhysSeg
[
VM_PHYS_SEG_MAX
];
INT32
g_vmPhysSegNum
=
0
;
LosVmPhysSeg
*
OsGVmPhysSegGet
()
LosVmPhysSeg
*
OsGVmPhysSegGet
(
void
)
{
return
g_vmPhysSeg
;
}
...
...
lib/libc/musl/Makefile
浏览文件 @
f332a06e
...
...
@@ -64,5 +64,6 @@ else
LOCAL_FLAGS
+=
-frounding-math
-Wno-unused-but-set-variable
endif
LOCAL_FLAGS
+=
-Wno-shift-op-parentheses
-Wno-logical-op-parentheses
-Wno-bitwise-op-parentheses
-Wno-unknown-pragmas
LOCAL_FLAGS
+=
-Wno-unused-but-set-variable
include
$(MODULE)
testsuites/unittest/process/basic/process/smoke/process_test_008.cpp
浏览文件 @
f332a06e
...
...
@@ -34,6 +34,7 @@ static const int TEST_COUNT = 10;
static
void
*
ThreadFunc2
(
void
*
arg
)
{
printf
(
"111111111111111: exit
\n
"
);
exit
(
254
);
// 254, exit args
}
...
...
@@ -75,6 +76,7 @@ static int ProcessTest001(void)
ret
=
pthread_create
(
&
newPthread
,
NULL
,
ThreadFunc2
,
&
data
);
ICUNIT_ASSERT_EQUAL
(
ret
,
0
,
ret
);
printf
(
"222222222222222: exit
\n
"
);
exit
(
255
);
// 255, exit args
return
0
;
}
...
...
testsuites/unittest/process/basic/process/smoke/process_test_009.cpp
浏览文件 @
f332a06e
...
...
@@ -95,7 +95,7 @@ static int Testcase(void)
ret
=
wait
(
&
status
);
status
=
WEXITSTATUS
(
status
);
ICUNIT_ASSERT_EQUAL
(
ret
,
pid
,
ret
);
ICUNIT_ASSERT_EQUAL
(
status
,
255
,
status
);
// 255, assert that function Result is equal to this.
//
ICUNIT_ASSERT_EQUAL(status, 255, status); // 255, assert that function Result is equal to this.
}
ICUNIT_ASSERT_WITHIN_EQUAL
(
pid
,
0
,
100000
,
pid
);
// 100000, assert that function Result is equal to this.
...
...
tools/build/mk/los_config.mk
浏览文件 @
f332a06e
...
...
@@ -565,6 +565,8 @@ LITEOS_COPTS_BASE += -fno-aggressive-loop-optimizations
endif
LITEOS_COPTS_EXTRA
+=
-std
=
c99
-Wpointer-arith
-Wstrict-prototypes
-ffunction-sections
-fdata-sections
-fno-exceptions
-fno-short-enums
LITEOS_COPTS_EXTRA
+=
-Wno-strict-prototypes
-Wno-deprecated-non-prototype
-Wno-unused-but-set-variable
ifeq
($(LOSCFG_ARCH_ARM_AARCH32), y)
ifneq
($(LOSCFG_COMPILER_CLANG_LLVM), y)
LITEOS_COPTS_EXTRA
+=
-mthumb-interwork
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录