From: Uwe Hermann Date: Wed, 11 May 2016 20:24:59 +0000 (+0200) Subject: fx2lafw: Fix a -Wself-assign compiler warning. X-Git-Tag: libsigrok-0.5.0~421 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e91d4ce2b2a2b34fe4cabb3082a2c325941de1f9;p=libsigrok.git fx2lafw: Fix a -Wself-assign compiler warning. This closes bug #793. --- diff --git a/src/hardware/fx2lafw/protocol.c b/src/hardware/fx2lafw/protocol.c index d267ad5b..ad16da95 100644 --- a/src/hardware/fx2lafw/protocol.c +++ b/src/hardware/fx2lafw/protocol.c @@ -390,9 +390,10 @@ SR_PRIV void mso_send_data_proc(struct sr_dev_inst *sdi, size_t i; struct dev_context *devc; + (void)sample_width; + devc = sdi->priv; - sample_width = sample_width; length /= 2; /* Send the logic */