* ui-file.c (stdio_file_write_async_safe): Add comment.
authorDoug Evans <dje@google.com>
Sat, 14 May 2011 05:44:37 +0000 (05:44 +0000)
committerDoug Evans <dje@google.com>
Sat, 14 May 2011 05:44:37 +0000 (05:44 +0000)
gdb/ChangeLog
gdb/ui-file.c

index a2abac7fe10574017d659c097cb017f096dc1e80..5ee25e90b32f89329064e54fc3188240fd0ed43a 100644 (file)
@@ -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.
index 6bb2342e746cbd46432215edd06a983956bb1f12..ce270f6cce03172d3289bd4b79d023d4959db1ff 100644 (file)
@@ -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))
     ;
 }
This page took 0.030905 seconds and 4 git commands to generate.