This fix build with GCC 4.6.3. CC emulator/amp.o emulator/amp.c: In function ‘send_packet’: emulator/amp.c:172:7: error: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Werror=unused-result] cc1: all warnings being treated as errors make[1]: *** [emulator/amp.o] Error --- emulator/amp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emulator/amp.c b/emulator/amp.c index e80d9a8..714854b 100644 --- a/emulator/amp.c +++ b/emulator/amp.c @@ -169,7 +169,8 @@ static void reset_defaults(struct bt_amp *amp) static void send_packet(struct bt_amp *amp, const void *data, uint16_t len) { - write(amp->vhci_fd, data, len); + if (write(amp->vhci_fd, data, len) < 0) + fprintf(stderr, "Write to /dev/vhci failed\n"); } static void send_event(struct bt_amp *amp, uint8_t event, -- 1.8.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html