build: fix unused-result warnings

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
Thomas Wood
2015-09-07 11:32:05 +01:00
parent f0381d1abe
commit 1dcace3018
7 changed files with 22 additions and 12 deletions
+3 -1
View File
@@ -147,7 +147,9 @@ dump_debug(void *buf, size_t count) {
if (!debug_fd)
debug_fd = open(debug_file, O_CREAT | O_WRONLY | O_TRUNC, S_IRWXO);
write(debug_fd, buf, count);
if (write(debug_fd, buf, count) == -1)
fprintf(stderr, "Error writing to debug file: %s\n",
strerror(errno));
}
static volatile void *