OSDN Git Service

gdb/gdbserver/
authorqiyao <qiyao>
Wed, 14 Dec 2011 07:47:14 +0000 (07:47 +0000)
committerqiyao <qiyao>
Wed, 14 Dec 2011 07:47:14 +0000 (07:47 +0000)
* tracepoint.c (gdb_ust_thread): Don't ignore return value
of write.

gdb/gdbserver/ChangeLog
gdb/gdbserver/tracepoint.c

index 8c88063..d295160 100644 (file)
@@ -1,5 +1,10 @@
 2011-12-14  Yao Qi  <yao@codesourcery.com>
 
+       * tracepoint.c (gdb_ust_thread): Don't ignore return value
+       of write.
+
+2011-12-14  Yao Qi  <yao@codesourcery.com>
+
        * i386-low.c (i386_low_stopped_data_address): Initialize local
        variable `control'.
 
index d50b5f3..5f7177f 100644 (file)
@@ -8122,7 +8122,8 @@ gdb_ust_thread (void *arg)
                strcpy (cmd_buf, "");
            }
 
-         write (fd, buf, 1);
+         /* Fix compiler's warning: ignoring return value of 'write'.  */
+         ret = write (fd, buf, 1);
          close (fd);
        }
     }