From 563054d2a29d7cdcae154f7972cb8e88e9c1e598 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 7 Mar 2013 10:34:17 +0100 Subject: [PATCH] More explicitely ignoring return value as suggested by Ludovic --- libnfc/buses/uart_posix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libnfc/buses/uart_posix.c b/libnfc/buses/uart_posix.c index fc32c12..081d399 100644 --- a/libnfc/buses/uart_posix.c +++ b/libnfc/buses/uart_posix.c @@ -127,8 +127,7 @@ uart_flush_input(serial_port sp) } char *rx = malloc(available_bytes_count); // There is something available, read the data - res = read(UART_DATA(sp)->fd, rx, available_bytes_count); - (void) res; + (void)read(UART_DATA(sp)->fd, rx, available_bytes_count); log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "%d bytes have eatten.", available_bytes_count); free(rx); }