From: Uwe Hermann Date: Sun, 18 Feb 2018 16:40:59 +0000 (+0100) Subject: siglent-sds: Fix multiple compiler warnings. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e8e063738d38d97375de6123355abb3ddf962168;p=libsigrok.git siglent-sds: Fix multiple compiler warnings. --- diff --git a/src/hardware/siglent-sds/api.c b/src/hardware/siglent-sds/api.c index 9810aa1b..ce27b1e2 100644 --- a/src/hardware/siglent-sds/api.c +++ b/src/hardware/siglent-sds/api.c @@ -527,11 +527,11 @@ static int config_set(uint32_t key, GVariant *data, struct dev_context *devc; uint64_t p; double t_dbl; - unsigned int i; + int i; int ret, idx; const char *tmp_str; char buffer[16]; - char *cmd; + char *cmd = ""; char cmd4[4]; devc = sdi->priv;