Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2301_76519099
rt-thread
提交
b80f5815
R
rt-thread
项目概览
2301_76519099
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
3
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b80f5815
编写于
4月 02, 2022
作者:
还_没_想_好
提交者:
guo
4月 06, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[compilers] Fix c/c++ compilation warnings and errors
上级
e896021b
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
68 addition
and
3 deletion
+68
-3
components/drivers/include/ipc/workqueue.h
components/drivers/include/ipc/workqueue.h
+7
-1
components/fal/src/fal_partition.c
components/fal/src/fal_partition.c
+3
-0
components/fal/src/fal_rtt.c
components/fal/src/fal_rtt.c
+1
-1
components/libc/compilers/common/extension/fcntl.h
components/libc/compilers/common/extension/fcntl.h
+8
-0
components/libc/compilers/common/extension/sys/select.h
components/libc/compilers/common/extension/sys/select.h
+8
-0
components/libc/compilers/common/extension/sys/stat.h
components/libc/compilers/common/extension/sys/stat.h
+8
-0
components/libc/compilers/common/extension/sys/types.h
components/libc/compilers/common/extension/sys/types.h
+8
-0
components/libc/compilers/common/extension/sys/unistd.h
components/libc/compilers/common/extension/sys/unistd.h
+8
-0
components/libc/compilers/common/sys/ioctl.h
components/libc/compilers/common/sys/ioctl.h
+8
-0
components/libc/compilers/common/sys/statfs.h
components/libc/compilers/common/sys/statfs.h
+8
-0
components/utilities/var_export/var_export.c
components/utilities/var_export/var_export.c
+1
-1
未找到文件。
components/drivers/include/ipc/workqueue.h
浏览文件 @
b80f5815
...
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
enum
{
RT_WORK_STATE_PENDING
=
0x0001
,
/* Work item pending state */
...
...
@@ -70,7 +74,9 @@ rt_err_t rt_work_urgent(struct rt_work *work);
rt_err_t
rt_work_cancel
(
struct
rt_work
*
work
);
#endif
/* RT_USING_SYSTEM_WORKQUEUE */
#ifdef __cplusplus
}
#endif
#endif
/* RT_USING_HEAP */
...
...
components/fal/src/fal_partition.c
浏览文件 @
b80f5815
...
...
@@ -43,6 +43,9 @@ struct part_flash_info
#elif defined (__GNUC__)
/* GNU GCC Compiler */
#define SECTION(x) __attribute__((section(x)))
#define USED __attribute__((used))
#elif defined (_MSC_VER)
#define SECTION(x)
#define USED
#else
#error not supported tool chain
#endif
/* __CC_ARM */
...
...
components/fal/src/fal_rtt.c
浏览文件 @
b80f5815
...
...
@@ -875,7 +875,7 @@ static void fal(uint8_t argc, char **argv) {
result
=
fal_partition_read
(
part_dev
,
i
,
read_data
,
cur_op_size
);
}
/* data check */
for
(
in
t
index
=
0
;
index
<
cur_op_size
;
index
++
)
for
(
size_
t
index
=
0
;
index
<
cur_op_size
;
index
++
)
{
if
(
write_data
[
index
]
!=
read_data
[
index
])
{
...
...
components/libc/compilers/common/extension/fcntl.h
浏览文件 @
b80f5815
...
...
@@ -13,6 +13,10 @@
#include "sys/types.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define O_RDONLY 00
#define O_WRONLY 01
#define O_RDWR 02
...
...
@@ -68,4 +72,8 @@ int open(const char *file, int flags, ...);
int
fcntl
(
int
fildes
,
int
cmd
,
...);
int
creat
(
const
char
*
path
,
mode_t
mode
);
#ifdef __cplusplus
}
#endif
#endif
components/libc/compilers/common/extension/sys/select.h
浏览文件 @
b80f5815
...
...
@@ -20,6 +20,10 @@
#include <winsock.h>
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
#ifndef FD_SETSIZE
#define FD_SETSIZE 32
#endif
...
...
@@ -55,4 +59,8 @@ typedef struct _types_fd_set {
int
select
(
int
nfds
,
fd_set
*
readfds
,
fd_set
*
writefds
,
fd_set
*
exceptfds
,
struct
timeval
*
timeout
);
#endif
/* _WIN32 */
#ifdef __cplusplus
}
#endif
#endif
/* __SYS_SELECT_H__ */
components/libc/compilers/common/extension/sys/stat.h
浏览文件 @
b80f5815
...
...
@@ -14,6 +14,10 @@
#include <sys/types.h>
#include <sys/time.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#define S_IFMT 00170000
#define S_IFSOCK 0140000
#define S_IFLNK 0120000
...
...
@@ -80,4 +84,8 @@ int mknod(const char *, mode_t, dev_t);
int
stat
(
const
char
*
,
struct
stat
*
);
mode_t
umask
(
mode_t
);
#ifdef __cplusplus
}
#endif
#endif
components/libc/compilers/common/extension/sys/types.h
浏览文件 @
b80f5815
...
...
@@ -16,6 +16,10 @@
#include <stddef.h>
#include <time.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
int32_t
clockid_t
;
typedef
int32_t
key_t
;
/* Used for interprocess communication. */
typedef
int
pid_t
;
/* Used for process IDs and process group IDs. */
...
...
@@ -39,4 +43,8 @@ typedef unsigned int u_int;
typedef
unsigned
char
u_char
;
typedef
unsigned
long
u_long
;
#ifdef __cplusplus
}
#endif
#endif
components/libc/compilers/common/extension/sys/unistd.h
浏览文件 @
b80f5815
...
...
@@ -15,6 +15,10 @@
#include <stddef.h>
#include "types.h"
/* <sys/types.h> */
#ifdef __cplusplus
extern
"C"
{
#endif
#define STDIN_FILENO 0
/* standard input file descriptor */
#define STDOUT_FILENO 1
/* standard output file descriptor */
#define STDERR_FILENO 2
/* standard error file descriptor */
...
...
@@ -46,4 +50,8 @@ uid_t geteuid(void);
gid_t
getgid
(
void
);
gid_t
getegid
(
void
);
#ifdef __cplusplus
}
#endif
#endif
/* _SYS_UNISTD_H */
components/libc/compilers/common/sys/ioctl.h
浏览文件 @
b80f5815
...
...
@@ -15,6 +15,10 @@
#include <winsock.h>
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
struct
winsize
{
unsigned
short
ws_row
;
...
...
@@ -271,4 +275,8 @@ struct winsize
int
ioctl
(
int
fildes
,
int
cmd
,
...);
#ifdef __cplusplus
}
#endif
#endif
components/libc/compilers/common/sys/statfs.h
浏览文件 @
b80f5815
...
...
@@ -12,6 +12,10 @@
#include <stddef.h>
#ifdef __cplusplus
extern
"C"
{
#endif
struct
statfs
{
size_t
f_bsize
;
/* block size */
...
...
@@ -22,4 +26,8 @@ struct statfs
int
statfs
(
const
char
*
path
,
struct
statfs
*
buf
);
int
fstatfs
(
int
fd
,
struct
statfs
*
buf
);
#ifdef __cplusplus
}
#endif
#endif
components/utilities/var_export/var_export.c
浏览文件 @
b80f5815
...
...
@@ -83,7 +83,7 @@ int var_export_init(void)
static
char
__vexp_strbuf1
[
1024
];
static
char
__vexp_strbuf2
[
1024
];
ve_exporter_t
ve_exporter_temp
;
in
t
index_i
,
index_j
;
rt_size_
t
index_i
,
index_j
;
/* past the three members in first ptr_begin */
ptr_begin
+=
(
sizeof
(
struct
ve_exporter
)
/
sizeof
(
unsigned
int
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录