Fix compiler warnings on some platforms and provide a better method
of defeating gcc's warn_unused_result attribute.
This commit is contained in:
@@ -302,7 +302,7 @@ sudo_debug_write(const char *str, int len)
|
||||
iov[0].iov_len = 16;
|
||||
|
||||
/* Write message in a single syscall */
|
||||
(void) writev(sudo_debug_fd, iov, iovcnt);
|
||||
ignore_result(writev(sudo_debug_fd, iov, iovcnt));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user