fix: 当前仓代码编译告警的问题
【背景】 当前仓代码存在编译告警需要处理 【修改方案】 在测试用例中屏蔽了-Werror选项 在对应的代码处添加了相应函数的声明头文件 【影响】 对现有的产品编译不会有影响。 re #I4N50W Signed-off-by: yinjiaming <yinjiaming@huawei.com> Change-Id: I7dc1e38105aa3d60f9f991f34f88875cccb48463
This commit is contained in:
@@ -38,6 +38,7 @@ kernel_module(module_name) {
|
||||
"$LITEOSTHIRDPARTY/littlefs/lfs_util.c",
|
||||
"lfs_api.c",
|
||||
]
|
||||
configs += [ "$LITEOSTOPDIR:warn_config" ]
|
||||
}
|
||||
|
||||
config("public") {
|
||||
|
||||
@@ -41,7 +41,7 @@ struct FileOpInfo g_fsOp[LOSCFG_LFS_MAX_MOUNT_SIZE] = {0};
|
||||
static LittleFsHandleStruct g_handle[LITTLE_FS_MAX_OPEN_FILES] = {0};
|
||||
struct dirent g_nameValue;
|
||||
static pthread_mutex_t g_FslocalMutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
static const char *g_littlefsMntName[LOSCFG_LFS_MAX_MOUNT_SIZE] = {"/a", "/b", "/c"};
|
||||
static const char *g_littlefsMntName[LOSCFG_LFS_MAX_MOUNT_SIZE] = {"/a"};
|
||||
|
||||
LittleFsHandleStruct *LfsAllocFd(const char *fileName, int *fd)
|
||||
{
|
||||
@@ -573,7 +573,7 @@ int LfsClosedir(DIR *dir)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int LfsOpen(const char *pathName, int openFlag, int mode)
|
||||
int LfsOpen(const char *pathName, int openFlag, ...)
|
||||
{
|
||||
int fd = INVALID_FD;
|
||||
int err = INVALID_FD;
|
||||
|
||||
@@ -100,7 +100,7 @@ int LfsRmdir(const char *dirName);
|
||||
DIR *LfsOpendir(const char *dirName);
|
||||
struct dirent *LfsReaddir(DIR *dir);
|
||||
int LfsClosedir(DIR *dir);
|
||||
int LfsOpen(const char *pathName, int openFlag, int mode);
|
||||
int LfsOpen(const char *pathName, int openFlag, ...);
|
||||
int LfsRead(int fd, void *buf, unsigned int len);
|
||||
int LfsWrite(int fd, const void *buf, unsigned int len);
|
||||
off_t LfsSeek(int fd, off_t offset, int whence);
|
||||
|
||||
Reference in New Issue
Block a user