]> sigrok.org Git - libsigrok.git/commitdiff
ftdi-la: silence "assigned but never used" compiler warning
authorGerhard Sittig <redacted>
Thu, 8 Feb 2018 22:19:00 +0000 (23:19 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:37:35 +0000 (21:37 +0100)
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.

src/hardware/ftdi-la/api.c

index 2ad2f447ed08e27cc8512943309ba14677dfcffd..b22e57f1a883f07572dd232c7c8534366c786f88 100644 (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);