mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
gst/gstpoll.c: Fix "ignored return value" compiler warning with newer glibc.
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.
This commit is contained in:
parent
36d76ce51c
commit
78734e4584
2 changed files with 12 additions and 1 deletions
|
@ -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>
|
2008-07-05 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||||
|
|
||||||
* gst/gstchildproxy.c:
|
* gst/gstchildproxy.c:
|
||||||
|
|
|
@ -88,10 +88,14 @@
|
||||||
/* the poll/select call is also performed on a control socket, that way
|
/* the poll/select call is also performed on a control socket, that way
|
||||||
* we can send special commands to control it
|
* 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) \
|
#define SEND_COMMAND(set, command) \
|
||||||
G_STMT_START { \
|
G_STMT_START { \
|
||||||
unsigned char c = command; \
|
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
|
} G_STMT_END
|
||||||
|
|
||||||
#define READ_COMMAND(set, command, res) \
|
#define READ_COMMAND(set, command, res) \
|
||||||
|
|
Loading…
Reference in a new issue