Project

General

Profile

Bug #2214

Compilation error

Added by Amine Bizid over 10 years ago. Updated over 10 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
Category:
General
Target version:
-
Start date:
2014-08-11
Due date:
% Done:

0%

Estimated time:
Found in version:
v3.9.1263
Affected Versions:

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

#1

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() */

#2

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?

Also available in: Atom PDF