mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Suppress harmless warnings.
This commit is contained in:
parent
ac8f4a6af9
commit
b9aeb98156
@ -4746,7 +4746,7 @@ try_again:
|
||||
/* Read the RESTORE replies. */
|
||||
int error_from_target = 0;
|
||||
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));
|
||||
|
||||
|
@ -774,10 +774,10 @@ void logStackTrace(ucontext_t *uc) {
|
||||
if (getMcontextEip(uc) != NULL) {
|
||||
char *msg1 = "EIP:\n";
|
||||
char *msg2 = "\nBacktrace:\n";
|
||||
write(fd,msg1,strlen(msg1));
|
||||
if (write(fd,msg1,strlen(msg1)) == -1) {/* Avoid warning. */};
|
||||
trace[0] = getMcontextEip(uc);
|
||||
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 */
|
||||
|
@ -1566,7 +1566,11 @@ void ldbSendLogs(void) {
|
||||
proto = sdscatlen(proto,"\r\n",2);
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user