ircd: shut GCC the fuck up.
No, it can't probably fail... that isn't what that's there for.
This commit is contained in:
parent
56f84dedf7
commit
2ac4ba969b
1 changed files with 7 additions and 1 deletions
|
@ -178,7 +178,13 @@ print_startup(int pid)
|
|||
* -- jilles */
|
||||
if (!server_state_foreground)
|
||||
{
|
||||
(void) write(0, ".", 1);
|
||||
/* GCC complains on Linux if we don't check the value of write pedantically.
|
||||
* Technically you're supposed to check the value, yes, but it probably can't fail.
|
||||
* No, casting to void is of no use to shut the warning up. You HAVE to use the value.
|
||||
* --Elizfaox
|
||||
*/
|
||||
if(write(0, ".", 1) < 1)
|
||||
abort();
|
||||
}
|
||||
if (dup2(1, 0) == -1)
|
||||
abort();
|
||||
|
|
Loading…
Reference in a new issue