From: Uwe Hermann Date: Fri, 9 Apr 2010 19:20:22 +0000 (+0200) Subject: zeroplus: Fix compiler warnings. X-Git-Tag: libsigrok-0.1.0~568 X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=86c5e279085a05c19d1d071831411fb617816ded;p=libsigrok.git zeroplus: Fix compiler warnings. --- diff --git a/hardware/zeroplus-logic-cube/zeroplus.c b/hardware/zeroplus-logic-cube/zeroplus.c index 480ee9db..e1f55405 100644 --- a/hardware/zeroplus-logic-cube/zeroplus.c +++ b/hardware/zeroplus-logic-cube/zeroplus.c @@ -108,12 +108,12 @@ static struct samplerates samplerates = { /* TODO: all of these should go in a device-specific struct */ static uint64_t cur_samplerate = 0; static uint64_t limit_samples = 0; -uint8_t num_channels = 32; // XXX this is not getting initialized before it is needed :( +int num_channels = 32; // XXX this is not getting initialized before it is needed :( uint64_t memory_size = 0; -static uint8_t probe_mask = 0, \ - trigger_mask[NUM_TRIGGER_STAGES] = {0}, \ - trigger_value[NUM_TRIGGER_STAGES] = {0}, \ - trigger_buffer[NUM_TRIGGER_STAGES] = {0};; +static uint8_t probe_mask = 0; +static uint8_t trigger_mask[NUM_TRIGGER_STAGES] = {0}; +static uint8_t trigger_value[NUM_TRIGGER_STAGES] = {0}; +// static uint8_t trigger_buffer[NUM_TRIGGER_STAGES] = {0}; static int hw_set_configuration(int device_index, int capability, void *value);