Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ef92f90d
Commit
ef92f90d
authored
Dec 16, 2015
by
antirez
Browse files
Suppress harmless warnings.
parent
4fee3903
Changes
3
Show whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
ef92f90d
...
@@ -4743,7 +4743,7 @@ try_again:
...
@@ -4743,7 +4743,7 @@ try_again:
/* Read the RESTORE replies. */
/* Read the RESTORE replies. */
int error_from_target = 0;
int error_from_target = 0;
int del_idx = 1; /* Index of the key argument for the replicated DEL op. */
int del_idx = 1; /* Index of the key argument for the replicated DEL op. */
robj **newargv;
robj **newargv
= NULL
;
if (!copy) newargv = zmalloc(sizeof(robj*)*(num_keys+1));
if (!copy) newargv = zmalloc(sizeof(robj*)*(num_keys+1));
...
...
src/debug.c
View file @
ef92f90d
...
@@ -776,10 +776,10 @@ void logStackTrace(ucontext_t *uc) {
...
@@ -776,10 +776,10 @@ void logStackTrace(ucontext_t *uc) {
if
(
getMcontextEip
(
uc
)
!=
NULL
)
{
if
(
getMcontextEip
(
uc
)
!=
NULL
)
{
char
*
msg1
=
"EIP:
\n
"
;
char
*
msg1
=
"EIP:
\n
"
;
char
*
msg2
=
"
\n
Backtrace:
\n
"
;
char
*
msg2
=
"
\n
Backtrace:
\n
"
;
write
(
fd
,
msg1
,
strlen
(
msg1
));
if
(
write
(
fd
,
msg1
,
strlen
(
msg1
))
==
-
1
)
{
/* Avoid warning. */
}
;
trace
[
0
]
=
getMcontextEip
(
uc
);
trace
[
0
]
=
getMcontextEip
(
uc
);
backtrace_symbols_fd
(
trace
,
1
,
fd
);
backtrace_symbols_fd
(
trace
,
1
,
fd
);
write
(
fd
,
msg2
,
strlen
(
msg2
));
if
(
write
(
fd
,
msg2
,
strlen
(
msg2
))
==
-
1
)
{
/* Avoid warning. */
}
;
}
}
/* Write symbols to log file */
/* Write symbols to log file */
...
...
src/scripting.c
View file @
ef92f90d
...
@@ -1566,7 +1566,11 @@ void ldbSendLogs(void) {
...
@@ -1566,7 +1566,11 @@ void ldbSendLogs(void) {
proto
=
sdscatlen
(
proto
,
"
\r\n
"
,
2
);
proto
=
sdscatlen
(
proto
,
"
\r\n
"
,
2
);
listDelNode
(
ldb
.
logs
,
ln
);
listDelNode
(
ldb
.
logs
,
ln
);
}
}
write
(
ldb
.
fd
,
proto
,
sdslen
(
proto
));
if
(
write
(
ldb
.
fd
,
proto
,
sdslen
(
proto
))
==
-
1
)
{
/* Avoid warning. We don't check the return value of write()
* since the next read() will catch the I/O error and will
* close the debugging session. */
}
sdsfree
(
proto
);
sdsfree
(
proto
);
}
}
...
...
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