mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
build: fix unused-result warnings
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
+3
-1
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user