From f057272cac1baeead056502c29faeef83323b0bc Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Mon, 31 Dec 2012 21:02:14 +0100 Subject: [PATCH] nexus-osciprime: Fix compiler warning. protocol.c:26:46: warning: unused parameter 'fd' [-Wunused-parameter] --- hardware/nexus-osciprime/protocol.c | 2 ++ 1 file changed, 2 insertions(+) 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;