修复
修复init_sq_list函数无意义传参数
This commit is contained in:
parent
7cace1073e
commit
17c2819618
@ -1,4 +1,5 @@
|
||||
linked_list.c
|
||||
C:\code\lencode\Project2\linked_list.c(31,24): warning C4028: 形参 1 与声明不同
|
||||
C:\code\lencode\Project2\linked_list.c(59,2): warning C4047: “return”:“address_node *”与“int”的间接级别不同
|
||||
main.c
|
||||
sq_list.c
|
||||
正在生成代码...
|
||||
C:\code\lencode\Project2\sq_list.c(10,1): warning C4716: “init_sq_list”: 必须返回一个值
|
||||
Project2.vcxproj -> C:\code\lencode\Project2\Debug\Project2.exe
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -3,9 +3,9 @@
|
||||
#include <string.h>
|
||||
#include "sq_list.h"
|
||||
|
||||
sq_list* init_sq_list(sq_list *name)
|
||||
sq_list* init_sq_list(void)
|
||||
{
|
||||
name = (sq_list*)malloc(sizeof(sq_list));
|
||||
sq_list* name = (sq_list*)malloc(sizeof(sq_list));
|
||||
memset(name, 0, sizeof(sq_list));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user