mirror of
https://github.com/osmarks/ngircd.git
synced 2025-06-19 14:54:08 +00:00
fix clang warning about dead stores
clang 'scan-build': Value stored to 'r' is never read Value stored to 'fd' is never read
This commit is contained in:
parent
10c7a15687
commit
605b6a67bc
@ -526,6 +526,8 @@ IRC_TOPIC( CLIENT *Client, REQUEST *Req )
|
|||||||
Client_ID(Client),
|
Client_ID(Client),
|
||||||
Channel_Name(chan), topic);
|
Channel_Name(chan), topic);
|
||||||
#ifndef STRICT_RFC
|
#ifndef STRICT_RFC
|
||||||
|
if (!r)
|
||||||
|
return r;
|
||||||
r = IRC_WriteStrClient(from, RPL_TOPICSETBY_MSG,
|
r = IRC_WriteStrClient(from, RPL_TOPICSETBY_MSG,
|
||||||
Client_ID(Client),
|
Client_ID(Client),
|
||||||
Channel_Name(chan),
|
Channel_Name(chan),
|
||||||
|
@ -706,10 +706,8 @@ NGIRCd_Init( bool NGIRCd_NoDaemon )
|
|||||||
|
|
||||||
/* Detach stdin, stdout and stderr */
|
/* Detach stdin, stdout and stderr */
|
||||||
Setup_FDStreams(fd);
|
Setup_FDStreams(fd);
|
||||||
if (fd > 2) {
|
if (fd > 2)
|
||||||
close(fd);
|
close(fd);
|
||||||
fd = -1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
pid = getpid();
|
pid = getpid();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user