提交 ef7076a7 编写于 作者: N Neil Chen

Fix build warnings

function declaration isn't a prototype
Signed-off-by: NNeil Chen <jingsi.chen@petalmail.com>
上级 a31adcc9
......@@ -24,7 +24,7 @@
#define API_VERSION_LEN 10
static const char* GetSdkApiLevel()
static const char* GetSdkApiLevel(void)
{
static char sdkApiVersion[API_VERSION_LEN] = {0};
int sdkApi = GetSdkApiVersion();
......@@ -32,7 +32,7 @@ static const char* GetSdkApiLevel()
return (const char*)sdkApiVersion;
}
static const char* GetFirstApiLevel()
static const char* GetFirstApiLevel(void)
{
static char firstApiVersion[API_VERSION_LEN] = {0};
int firstApi = GetFirstApiVersion();
......@@ -66,7 +66,7 @@ static const SysParaInfoItem SYSPARA_LIST[] = {
{"BuildRootHash", GetBuildRootHash},
};
int QuerySysparaCmd()
int QuerySysparaCmd(void)
{
int index = 0;
int dumpInfoItemNum = (sizeof(SYSPARA_LIST) / sizeof(SysParaInfoItem));
......
......@@ -21,6 +21,6 @@ typedef struct {
const char *(*getInfoValue)(void);
} SysParaInfoItem;
int QuerySysparaCmd();
int QuerySysparaCmd(void);
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册