From: Gerhard Sittig Date: Fri, 26 May 2017 19:36:35 +0000 (+0200) Subject: asix-sigma: Silence a compiler warning (declared but not used) X-Git-Tag: libsigrok-0.5.0~30 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=eac48b34917cf19c2b5ba52ccea85ec94bb5830f;p=libsigrok.git asix-sigma: Silence a compiler warning (declared but not used) The call site which referenced the variable was conditional (disabled trigger support) but the variable declaration was not. Fix that. --- diff --git a/src/hardware/asix-sigma/api.c b/src/hardware/asix-sigma/api.c index 4b35ea33..4e3d32be 100644 --- a/src/hardware/asix-sigma/api.c +++ b/src/hardware/asix-sigma/api.c @@ -50,13 +50,14 @@ static const uint32_t devopts[] = { #endif }; +#if ASIX_SIGMA_WITH_TRIGGER static const int32_t trigger_matches[] = { SR_TRIGGER_ZERO, SR_TRIGGER_ONE, SR_TRIGGER_RISING, SR_TRIGGER_FALLING, }; - +#endif static int dev_clear(const struct sr_dev_driver *di) {