]> sigrok.org Git - libsigrok.git/commitdiff
asix-sigma: Silence a compiler warning (declared but not used)
authorGerhard Sittig <redacted>
Fri, 26 May 2017 19:36:35 +0000 (21:36 +0200)
committerUwe Hermann <redacted>
Fri, 26 May 2017 20:48:40 +0000 (22:48 +0200)
The call site which referenced the variable was conditional (disabled
trigger support) but the variable declaration was not. Fix that.

src/hardware/asix-sigma/api.c

index 4b35ea333070b5bcb2d06cc49bfe198d6fe72cae..4e3d32beb99f1f934e37a36af306883628d94373 100644 (file)
@@ -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)
 {