提交 9db395c7 编写于 作者: Y yinjiaming

fix: 修复M核存在的编译警告的问题

【背景】
M核存在编译告警需要处理

【修改方案】
在malloc.h中添加了zalloc的声明

【影响】
对现有的产品编译不会有影响。

re #I4N50W
Signed-off-by: Nyinjiaming <yinjiaming@huawei.com>
Change-Id: I59e139ce23da7b50dce324289bff3c846016e78c
上级 496e030a
......@@ -44,6 +44,7 @@ void *calloc (size_t, size_t);
void *realloc (void *, size_t);
void free (void *);
void *aligned_alloc(size_t, size_t);
void *zalloc(size_t size);
_Noreturn void abort (void);
int atexit (void (*) (void));
......
......@@ -98,7 +98,7 @@ void *memmem(const void *, size_t, const void *, size_t);
void *memrchr(const void *, int, size_t);
void *mempcpy(void *, const void *, size_t);
#ifndef __cplusplus
char *basename();
char *basename(void);
#endif
#endif
......
......@@ -35,6 +35,7 @@
#include <limits.h>
#include <errno.h>
#include <sys/stat.h>
#include <securec.h>
/*
* LiteOS-M file system uses abs path
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册