]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/commitdiff
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 dbb580a4d55e133d867e81f2e8926ef57c7b9637..41aa1d47f0b4da6bad1c49079ae36ac68af036e8 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 c82a86db1a4de5b218dedc465267edb7a15ab6f6..4a05042a5f7613fd39df66a01c515e31c17394c1 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)              \