mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Silence random warnings
None of these seem to point to actual issues, so let's quiet them. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
12dac214aa
commit
27c49fe3ad
6 changed files with 9 additions and 7 deletions
|
@ -181,14 +181,14 @@ static dc_status_t ble_serial_write(dc_custom_io_t *io, const void* data, size_t
|
|||
while (size) {
|
||||
size_t len = sizeof(buffer.out) - transferred;
|
||||
|
||||
if (len > io->packet_size)
|
||||
if ((int)len > io->packet_size)
|
||||
len = io->packet_size;
|
||||
if (len > size)
|
||||
len = size;
|
||||
memcpy(buffer.out + buffer.out_bytes, data, len);
|
||||
buffer.out_bytes += len;
|
||||
|
||||
if (buffer.out_bytes <= io->packet_size || buffer.out_bytes == size) {
|
||||
if ((int)buffer.out_bytes <= io->packet_size || buffer.out_bytes == size) {
|
||||
rc = ble_serial_flush_write();
|
||||
if (rc != DC_STATUS_SUCCESS)
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue