From: Uwe Hermann Date: Mon, 31 Dec 2012 20:02:14 +0000 (+0100) Subject: nexus-osciprime: Fix compiler warning. X-Git-Tag: dsupstream~396 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f057272cac1baeead056502c29faeef83323b0bc;p=libsigrok.git nexus-osciprime: Fix compiler warning. protocol.c:26:46: warning: unused parameter 'fd' [-Wunused-parameter] --- diff --git a/hardware/nexus-osciprime/protocol.c b/hardware/nexus-osciprime/protocol.c index 3c85a977..86c4214b 100644 --- a/hardware/nexus-osciprime/protocol.c +++ b/hardware/nexus-osciprime/protocol.c @@ -28,6 +28,8 @@ SR_PRIV int nexus_osciprime_receive_data(int fd, int revents, void *cb_data) const struct sr_dev_inst *sdi; struct dev_context *devc; + (void)fd; + if (!(sdi = cb_data)) return TRUE;