gdb/gdbserver/

* tracepoint.c (gdb_ust_thread): Don't ignore return value
	of write.
This commit is contained in:
Yao Qi 2011-12-14 07:47:15 +00:00
parent d54d1edf1a
commit 712c65750b
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View 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);
}
}