* ui-file.c (stdio_file_write_async_safe): Add comment.
This commit is contained in:
parent
093cee7d54
commit
9f7bc58762
|
@ -1,3 +1,7 @@
|
|||
2011-05-13 Doug Evans <dje@google.com>
|
||||
|
||||
* ui-file.c (stdio_file_write_async_safe): Add comment.
|
||||
|
||||
2011-05-14 Hui Zhu <teawater@gmail.com>
|
||||
|
||||
* ui-file.c (stdio_file_write_async_safe): Add empty check for build.
|
||||
|
|
|
@ -580,6 +580,9 @@ stdio_file_write_async_safe (struct ui_file *file,
|
|||
return;
|
||||
}
|
||||
|
||||
/* This is written the way it is to avoid a warning from gcc about not using the
|
||||
result of write (since it can be declared with attribute warn_unused_result).
|
||||
Alas casting to void doesn't work for this. */
|
||||
if (write (stdio->fd, buf, length_buf))
|
||||
;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue