summaryrefslogtreecommitdiffstats
path: root/TraceScreen.c
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2015-05-15 11:33:25 +0200
committerChristian Hesse <mail@eworm.de>2015-05-15 11:33:25 +0200
commit08829cbc3b5682809333aa005b0bc669760c895a (patch)
tree8a040c1d96855af99b117f6dbafe82568f744dac /TraceScreen.c
parentf4f6d54ffd820243862c6189176a3159d2ebd7a6 (diff)
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.
Diffstat (limited to 'TraceScreen.c')
-rw-r--r--TraceScreen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/TraceScreen.c b/TraceScreen.c
index 6f871267..197a0fd1 100644
--- a/TraceScreen.c
+++ b/TraceScreen.c
@@ -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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy