Bug #2214
Compilation error
0%
Description
CC src/dbus.o
src/dbus.c: In function ‘dbus_emit_signal’:
src/dbus.c:80:8: error: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Werror=unused-result]
write(dbus_pipe.wr, "s", 1); /* do not wait here - no tvh_write() /
^
cc1: all warnings being treated as errors
make: ** [/home/zig/tv1/tvheadend/build.linux/src/dbus.o] Erreur 1
History
Updated by Amine Bizid over 10 years ago
Amine Mabrouk wrote:
CC src/dbus.o
src/dbus.c: In function ‘dbus_emit_signal’:
src/dbus.c:80:8: error: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Werror=unused-result]
write(dbus_pipe.wr, "s", 1); /* do not wait here - no tvh_write() /
^
cc1: all warnings being treated as errors
make: ** [/home/zig/tv1/tvheadend/build.linux/src/dbus.o] Erreur 1
Just replace by l = write(dbus_pipe.wr, "s", 1); /* do not wait here - no tvh_write() */
Updated by Andy Brown over 10 years ago
- Status changed from New to Fixed
- Assignee set to Andy Brown
I believe this is fixed in master, compiling here didn't throw and errors so can you pull from git and retest please?