From: Uwe Hermann Date: Tue, 31 Dec 2013 18:21:04 +0000 (+0100) Subject: gmc-mh-1x-2x: Fix compiler warning (clang). X-Git-Tag: libsigrok-0.3.0~356 X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=42f2f8a533e33ab77e737fbd880ef6e06bdb2b93;p=libsigrok.git gmc-mh-1x-2x: Fix compiler warning (clang). CC libsigrok_hw_gmc_mh_1x_2x_la-protocol.lo protocol.c:133:32: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] } else if ((devc->scale1000 == 2)) { ~~~~~~~~~~~~~~~~^~~~ protocol.c:133:32: note: remove extraneous parentheses around the comparison to silence this warning } else if ((devc->scale1000 == 2)) { ~ ^ ~ --- diff --git a/hardware/gmc-mh-1x-2x/protocol.c b/hardware/gmc-mh-1x-2x/protocol.c index 2b2b6966..76b804cb 100644 --- a/hardware/gmc-mh-1x-2x/protocol.c +++ b/hardware/gmc-mh-1x-2x/protocol.c @@ -130,7 +130,7 @@ static void decode_rs_16(uint8_t rs, struct dev_context *devc) devc->mq = SR_MQ_TEMPERATURE; devc->unit = SR_UNIT_CELSIUS; devc->scale *= 0.01; - } else if ((devc->scale1000 == 2)) { + } else if (devc->scale1000 == 2) { /* 16I Iso 500/1000V 3 GOhm */ devc->scale *= 0.1; }