fluke-dmm: Fix two compiler warnings.
src/hardware/fluke-dmm/fluke.c:312:24: warning: implicit conversion from \ enumeration type 'enum sr_unit' to different enumeration type 'enum sr_mq' \ [-Wenum-conversion] devc->mq = devc->unit = devc->mqflags = 0; ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/hardware/fluke-dmm/fluke.c:312:40: warning: implicit conversion from \ enumeration type 'enum sr_mqflag' to different enumeration type 'enum \ sr_unit' [-Wenum-conversion] devc->mq = devc->unit = devc->mqflags = 0; ~ ~~~~~~~~~~~~~~^~~
This commit is contained in:
parent
693c52482a
commit
55ec0b673a
|
@ -309,7 +309,10 @@ static void handle_qm_19x_meta(const struct sr_dev_inst *sdi, char **tokens)
|
|||
return;
|
||||
meas_char = strtol(tokens[4], NULL, 10);
|
||||
|
||||
devc->mq = devc->unit = devc->mqflags = 0;
|
||||
devc->mq = 0;
|
||||
devc->unit = 0;
|
||||
devc->mqflags = 0;
|
||||
|
||||
switch (meas_unit) {
|
||||
case 1:
|
||||
devc->mq = SR_MQ_VOLTAGE;
|
||||
|
|
Loading…
Reference in New Issue