mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-14 21:14:35 +03:00
fix compiler warnings
gcc gives warnings like this: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result Assign value to a variable, cast to (void) to discard it.
This commit is contained in:
@ -93,7 +93,8 @@ void TraceScreen_run(TraceScreen* this) {
|
||||
execlp("strace", "strace", "-p", buffer, NULL);
|
||||
}
|
||||
const char* message = "Could not execute 'strace'. Please make sure it is available in your $PATH.";
|
||||
write(fdpair[1], message, strlen(message));
|
||||
ssize_t written = write(fdpair[1], message, strlen(message));
|
||||
(void) written;
|
||||
exit(1);
|
||||
}
|
||||
fcntl(fdpair[0], F_SETFL, O_NONBLOCK);
|
||||
|
Reference in New Issue
Block a user