More explicitely ignoring return value as suggested by Ludovic
This commit is contained in:
parent
7b917f9a8b
commit
563054d2a2
1 changed files with 1 additions and 2 deletions
|
@ -127,8 +127,7 @@ uart_flush_input(serial_port sp)
|
||||||
}
|
}
|
||||||
char *rx = malloc(available_bytes_count);
|
char *rx = malloc(available_bytes_count);
|
||||||
// There is something available, read the data
|
// There is something available, read the data
|
||||||
res = read(UART_DATA(sp)->fd, rx, available_bytes_count);
|
(void)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);
|
log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "%d bytes have eatten.", available_bytes_count);
|
||||||
free(rx);
|
free(rx);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue