diff --git a/source/blender/blenlib/intern/BLI_mmap.cc b/source/blender/blenlib/intern/BLI_mmap.cc index d69c4637468..9fc4c747a36 100644 --- a/source/blender/blenlib/intern/BLI_mmap.cc +++ b/source/blender/blenlib/intern/BLI_mmap.cc @@ -275,7 +275,9 @@ static void print_error(const char *message) { char buffer[256]; size_t length = BLI_string_join(buffer, sizeof(buffer), "BLI_mmap: ", message, "\n"); - write(STDERR_FILENO, buffer, length); + if (write(STDERR_FILENO, buffer, length) < 0) { + /* If writing to stderr fails, there is nowhere to write an error about that. */ + } } static bool try_map_zeros(BLI_mmap_file *file)