Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
d345d1da
Commit
d345d1da
authored
Dec 11, 2022
by
Oran Agra
Browse files
resolve build warnings in quicklist test
parent
0a3ae0f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/quicklist.c
View file @
d345d1da
...
...
@@ -1864,7 +1864,7 @@ int quicklistTest(int argc, char *argv[], int accurate) {
unsigned
int
sz
;
long
long
lv
;
ql_info
(
ql
);
quicklistPop
(
ql
,
QUICKLIST_HEAD
,
&
data
,
&
sz
,
&
lv
);
assert
(
quicklistPop
(
ql
,
QUICKLIST_HEAD
,
&
data
,
&
sz
,
&
lv
)
)
;
assert
(
data
!=
NULL
);
assert
(
sz
==
32
);
if
(
strcmp
(
populate
,
(
char
*
)
data
))
...
...
@@ -1882,7 +1882,7 @@ int quicklistTest(int argc, char *argv[], int accurate) {
unsigned
int
sz
;
long
long
lv
;
ql_info
(
ql
);
quicklistPop
(
ql
,
QUICKLIST_HEAD
,
&
data
,
&
sz
,
&
lv
);
assert
(
quicklistPop
(
ql
,
QUICKLIST_HEAD
,
&
data
,
&
sz
,
&
lv
)
)
;
assert
(
data
==
NULL
);
assert
(
lv
==
55513
);
ql_verify
(
ql
,
0
,
0
,
0
,
0
);
...
...
@@ -2681,9 +2681,11 @@ int quicklistTest(int argc, char *argv[], int accurate) {
if
(
step
==
1
)
{
for
(
int
i
=
0
;
i
<
list_sizes
[
list
]
/
2
;
i
++
)
{
unsigned
char
*
data
;
quicklistPop
(
ql
,
QUICKLIST_HEAD
,
&
data
,
NULL
,
NULL
);
assert
(
quicklistPop
(
ql
,
QUICKLIST_HEAD
,
&
data
,
NULL
,
NULL
));
zfree
(
data
);
quicklistPop
(
ql
,
QUICKLIST_TAIL
,
&
data
,
NULL
,
NULL
);
assert
(
quicklistPop
(
ql
,
QUICKLIST_TAIL
,
&
data
,
NULL
,
NULL
));
zfree
(
data
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment