Fix two minor compiler warnings.

This commit is contained in:
Uwe Hermann 2013-04-12 17:45:01 +02:00
parent ba6568c5ad
commit ff08a52a0f
2 changed files with 2 additions and 1 deletions

View File

@ -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);
}

View File

@ -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: