Avoid warning about ignoring return value of 'read'
This commit is contained in:
parent
7fb538737d
commit
fdd5bd3523
1 changed files with 2 additions and 1 deletions
|
@ -127,7 +127,8 @@ uart_flush_input(serial_port sp)
|
|||
}
|
||||
char *rx = malloc(available_bytes_count);
|
||||
// There is something available, read the data
|
||||
read(UART_DATA(sp)->fd, rx, available_bytes_count);
|
||||
res = read(UART_DATA(sp)->fd, rx, available_bytes_count);
|
||||
(void) res;
|
||||
log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "%d bytes have eatten.", available_bytes_count);
|
||||
free(rx);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue