From: Kumar Abhishek Date: Sat, 23 Sep 2017 07:00:33 +0000 (+0530) Subject: beaglelogic: Fix compiler warnings in beaglelogic_tcp.c X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f154b40dddbd954a9a21bf0f53ce01b3b8211de7;p=libsigrok.git beaglelogic: Fix compiler warnings in beaglelogic_tcp.c Signed-off-by: Kumar Abhishek --- diff --git a/src/hardware/beaglelogic/beaglelogic_tcp.c b/src/hardware/beaglelogic/beaglelogic_tcp.c index b3fcb0ab..9c32987b 100644 --- a/src/hardware/beaglelogic/beaglelogic_tcp.c +++ b/src/hardware/beaglelogic/beaglelogic_tcp.c @@ -108,7 +108,7 @@ static int beaglelogic_tcp_send_cmd(struct dev_context *devc, } if (out < (int)strlen(buf)) { - sr_dbg("Only sent %d/%d bytes of command: '%s'.", out, + sr_dbg("Only sent %d/%lu bytes of command: '%s'.", out, strlen(buf), buf); } @@ -366,7 +366,7 @@ static int beaglelogic_set_bufunitsize(struct dev_context *devc) { } static int dummy(struct dev_context *devc) { - (devc); + (void)devc; return SR_ERR_NA; }