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.
This commit is contained in:
Gerhard Sittig 2018-02-08 23:19:00 +01:00 committed by Uwe Hermann
parent 051e4beb79
commit f6051b9eca
1 changed files with 1 additions and 0 deletions

View File

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