From 78734e458480eee122d83a9e255ce86041234cef Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Sun, 6 Jul 2008 12:49:43 +0000 Subject: [PATCH] gst/gstpoll.c: Fix "ignored return value" compiler warning with newer glibc. Original commit message from CVS: Patch by: Alessandro Decina * gst/gstpoll.c: Fix "ignored return value" compiler warning with newer glibc. --- ChangeLog | 7 +++++++ gst/gstpoll.c | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dbb580a..41aa1d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-07-06 Sebastian Dröge + + Patch by: Alessandro Decina + + * gst/gstpoll.c: + Fix "ignored return value" compiler warning with newer glibc. + 2008-07-05 Sebastian Dröge * gst/gstchildproxy.c: diff --git a/gst/gstpoll.c b/gst/gstpoll.c index c82a86d..4a05042 100644 --- a/gst/gstpoll.c +++ b/gst/gstpoll.c @@ -88,10 +88,14 @@ /* 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) \ -- 2.7.4