gst/gstpoll.c: Fix "ignored return value" compiler warning with newer glibc.
authorAlessandro Decina <alessandro@nnva.org>
Sun, 6 Jul 2008 12:49:43 +0000 (12:49 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Sun, 6 Jul 2008 12:49:43 +0000 (12:49 +0000)
Original commit message from CVS:
Patch by: Alessandro Decina <alessandro at nnva dot org>
* gst/gstpoll.c:
Fix "ignored return value" compiler warning with newer glibc.

ChangeLog
gst/gstpoll.c

index dbb580a..41aa1d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-07-06  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
+
+       Patch by: Alessandro Decina <alessandro at nnva dot org>
+
+       * gst/gstpoll.c:
+       Fix "ignored return value" compiler warning with newer glibc.
+
 2008-07-05  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
 
        * gst/gstchildproxy.c:
index c82a86d..4a05042 100644 (file)
 /* the poll/select call is also performed on a control socket, that way
  * we can send special commands to control it
  */
+/* FIXME: Shouldn't we check or return the return value
+ * of write()?
+ */
 #define SEND_COMMAND(set, command)                   \
 G_STMT_START {                                       \
   unsigned char c = command;                         \
-  write (set->control_write_fd.fd, &c, 1);           \
+  ssize_t res;                                       \
+  res = write (set->control_write_fd.fd, &c, 1);     \
 } G_STMT_END
 
 #define READ_COMMAND(set, command, res)              \