From f07298663f2f69ab5c4e83d327470a90f92ec079 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 23 Apr 2016 17:37:01 +0200 Subject: [PATCH] Fix two compiler warnings. --- src/hardware/hameg-hmo/protocol.c | 1 + src/scpi/scpi_vxi.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hardware/hameg-hmo/protocol.c b/src/hardware/hameg-hmo/protocol.c index bd2174a7..a073d0de 100644 --- a/src/hardware/hameg-hmo/protocol.c +++ b/src/hardware/hameg-hmo/protocol.c @@ -734,6 +734,7 @@ SR_PRIV int hmo_receive_data(int fd, int revents, void *cb_data) struct sr_datafeed_logic logic; (void)fd; + (void)revents; data = NULL; diff --git a/src/scpi/scpi_vxi.c b/src/scpi/scpi_vxi.c index 9f6b2c35..b61ced01 100644 --- a/src/scpi/scpi_vxi.c +++ b/src/scpi/scpi_vxi.c @@ -127,7 +127,7 @@ static int scpi_vxi_send(void *priv, const char *command) write_parms.lock_timeout = VXI_DEFAULT_TIMEOUT_MS; write_parms.flags = DF_END; write_parms.data.data_len = MIN(len, vxi->max_send_size); - write_parms.data.data_val = command; + write_parms.data.data_val = (char *)command; if (!(write_resp = device_write_1(&write_parms, vxi->client)) || write_resp->error) {