Fix some compiler warnings
This commit is contained in:
parent
57ffb2ba7a
commit
c5fac27bc8
@ -140,7 +140,7 @@ static int receive_packet(suunto_eonsteel_device_t *eon, unsigned char *buffer,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (transferred != PACKET_SIZE) {
|
if (transferred != PACKET_SIZE) {
|
||||||
ERROR(eon->base.context, "incomplete read interrupt transfer (got %d, expected %d)", transferred, PACKET_SIZE);
|
ERROR(eon->base.context, "incomplete read interrupt transfer (got %zu, expected %d)", transferred, PACKET_SIZE);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (buf[0] != 0x3f) {
|
if (buf[0] != 0x3f) {
|
||||||
|
|||||||
@ -239,7 +239,7 @@ static int fill_in_group_details(suunto_eonsteel_parser_t *eon, struct type_desc
|
|||||||
}
|
}
|
||||||
base = eon->type_desc + index;
|
base = eon->type_desc + index;
|
||||||
if (!base->desc) {
|
if (!base->desc) {
|
||||||
ERROR(eon->base.context, "Group type descriptor '%s' has undescribed index %d", desc->desc, index);
|
ERROR(eon->base.context, "Group type descriptor '%s' has undescribed index %ld", desc->desc, index);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!base->size) {
|
if (!base->size) {
|
||||||
@ -267,7 +267,7 @@ static int fill_in_group_details(suunto_eonsteel_parser_t *eon, struct type_desc
|
|||||||
grp = end+1;
|
grp = end+1;
|
||||||
continue;
|
continue;
|
||||||
default:
|
default:
|
||||||
ERROR(eon->base.context, "Group type descriptor '%s' has unparseable index %d", desc->desc, index);
|
ERROR(eon->base.context, "Group type descriptor '%s' has unparseable index %ld", desc->desc, index);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user