X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fdmm%2Feev121gw.c;h=ac7622078c2dafa55f6d233f6cd2edebb479bd79;hb=fa801c4f1c37200f6f9c5be30b340f42a5e59c1b;hp=7361928a6a40ea3471424f43d34eb8165a0867be;hpb=6f7e15090e82333403751c646cdd117ea36c546b;p=libsigrok.git diff --git a/src/dmm/eev121gw.c b/src/dmm/eev121gw.c index 7361928a..ac762207 100644 --- a/src/dmm/eev121gw.c +++ b/src/dmm/eev121gw.c @@ -22,8 +22,6 @@ * * EEVblog 121GW 19-bytes binary protocol parser. * - * @internal - * * Note that this protocol is different from other meters. We need not * decode the LCD presentation (segments a-g and dot of seven segment * displays). Neither need we decode a textual presentation consisting @@ -691,7 +689,7 @@ SR_PRIV gboolean sr_eev121gw_packet_valid(const uint8_t *buf) * @return SR_OK upon success, SR_ERR upon failure. Upon errors, the * 'analog' variable contents are undefined and should not be used. */ -SR_PRIV int sr_eev121gw_parse(const uint8_t *buf, float *floatval, +static int sr_eev121gw_parse(const uint8_t *buf, float *floatval, struct sr_datafeed_analog *analog, void *info) { struct eev121gw_info *info_local; @@ -764,6 +762,8 @@ SR_PRIV int sr_eev121gw_parse(const uint8_t *buf, float *floatval, ser_mon = FIELD_NL(raw_serial, SERIAL_MONTH); ser_nr = FIELD_NL(raw_serial, SERIAL_NUMBER); sr_spew("Packet: Y-M %x-%x, nr %x.", ser_year, ser_mon, ser_nr); + } else { + (void)raw_serial; /* Silence compiler warning. */ } switch (display) {