summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2008-09-11 11:26:06 +0000
committerTim-Philipp Müller <tim@centricular.net>2008-09-11 11:26:06 +0000
commit2a4c9ec6aadb19df6fb0a391e74bd7160130f4df (patch)
tree2257b956ccd47ecd12abb3751d6a2e5afe60fba0
parent9a12021247080ccf24e2cb60a73000a6cf2ee973 (diff)
ext/raw1394/: Pretend to care about the result of write() which works around compiler warnings.
Original commit message from CVS: * ext/raw1394/gstdv1394src.c: (SEND_COMMAND): * ext/raw1394/gsthdv1394src.c: (SEND_COMMAND): Pretend to care about the result of write() which works around compiler warnings.
-rw-r--r--ChangeLog8
m---------common0
-rw-r--r--ext/raw1394/gstdv1394src.c4
-rw-r--r--ext/raw1394/gsthdv1394src.c4
4 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index c0dd109d..dfd5e8bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-09-11 Tim-Philipp Müller <tim.muller at collabora co uk>
+
+
+ * ext/raw1394/gstdv1394src.c: (SEND_COMMAND):
+ * ext/raw1394/gsthdv1394src.c: (SEND_COMMAND):
+ Pretend to care about the result of write() which works around
+ compiler warnings.
+
2008-09-04 Tim-Philipp Müller <tim.muller at collabora co uk>
* ext/flac/gstflacenc.c: (gst_flac_enc_class_init):
diff --git a/common b/common
-Subproject 8d494854a6018336a80ece82ceb3df0033e2da9
+Subproject 1ff63d8f92c36bf207434436f4ce75f2a4ea11a
diff --git a/ext/raw1394/gstdv1394src.c b/ext/raw1394/gstdv1394src.c
index bd5014cc..5db691aa 100644
--- a/ext/raw1394/gstdv1394src.c
+++ b/ext/raw1394/gstdv1394src.c
@@ -68,8 +68,8 @@
#define SEND_COMMAND(src, command) \
G_STMT_START { \
- unsigned char c; c = command; \
- write (WRITE_SOCKET(src), &c, 1); \
+ int _res; unsigned char c; c = command; \
+ _res = write (WRITE_SOCKET(src), &c, 1); \
} G_STMT_END
#define READ_COMMAND(src, command, res) \
diff --git a/ext/raw1394/gsthdv1394src.c b/ext/raw1394/gsthdv1394src.c
index db06d70d..8293b4a0 100644
--- a/ext/raw1394/gsthdv1394src.c
+++ b/ext/raw1394/gsthdv1394src.c
@@ -46,8 +46,8 @@
#define SEND_COMMAND(src, command) \
G_STMT_START { \
- unsigned char c; c = command; \
- write (WRITE_SOCKET(src), &c, 1); \
+ int _res; unsigned char c; c = command; \
+ _res = write (WRITE_SOCKET(src), &c, 1); \
} G_STMT_END
#define READ_COMMAND(src, command, res) \