From: Uwe Hermann Date: Fri, 12 Apr 2013 15:45:01 +0000 (+0200) Subject: Fix two minor compiler warnings. X-Git-Tag: dsupstream~169 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ff08a52a0fb66abb471fa0bfe0369300c313778f;p=libsigrok.git Fix two minor compiler warnings. --- diff --git a/hardware/link-mso19/protocol.c b/hardware/link-mso19/protocol.c index ab77a5a1..09c7bc7d 100644 --- a/hardware/link-mso19/protocol.c +++ b/hardware/link-mso19/protocol.c @@ -412,6 +412,7 @@ SR_PRIV int mso_receive_data(int fd, int revents, void *cb_data) /* FIXME: Need to do conversion to mV */ analog_out[i] = (devc->buffer[i * 3] & 0x3f) | ((devc->buffer[i * 3 + 1] & 0xf) << 6); + (void)analog_out; logic_out[i] = ((devc->buffer[i * 3 + 1] & 0x30) >> 4) | ((devc->buffer[i * 3 + 2] & 0x3f) << 2); } diff --git a/hardware/nexus-osciprime/api.c b/hardware/nexus-osciprime/api.c index c1de7b77..3413b8ea 100644 --- a/hardware/nexus-osciprime/api.c +++ b/hardware/nexus-osciprime/api.c @@ -271,8 +271,8 @@ static int config_set(int id, GVariant *data, const struct sr_dev_inst *sdi) static int config_list(int key, GVariant **data, const struct sr_dev_inst *sdi) { - (void)sdi; + (void)data; switch (key) { default: