From: Gerhard Sittig Date: Thu, 8 Feb 2018 22:19:00 +0000 (+0100) Subject: ftdi-la: silence "assigned but never used" compiler warning X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f6051b9eca164319131ada85c3f82f75dca460cf;p=libsigrok.git ftdi-la: silence "assigned but never used" compiler warning Stick with the prepared but unfinished "limit msec" code path, but silence the warning about an unused variable value. This was reported by clang's scan-build. --- diff --git a/src/hardware/ftdi-la/api.c b/src/hardware/ftdi-la/api.c index 2ad2f447..b22e57f1 100644 --- a/src/hardware/ftdi-la/api.c +++ b/src/hardware/ftdi-la/api.c @@ -346,6 +346,7 @@ static int config_set(uint32_t key, GVariant *data, case SR_CONF_LIMIT_MSEC: value = g_variant_get_uint64(data); /* TODO: Implement. */ + (void)value; return SR_ERR_NA; case SR_CONF_LIMIT_SAMPLES: devc->limit_samples = g_variant_get_uint64(data);