X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fsaleae-logic%2Fsaleae-logic.c;h=44fe0a4a5094c9c802cf952a120708f6cfbfe616;hb=15278f3e9cf4c4a4a6c331e042f9935709343c82;hp=a1ab755b149c2b0b6e479575e2b4ab1c468c1a0d;hpb=a634574eae69c9e712d5dbec8b97809840876c5f;p=libsigrok.git diff --git a/hardware/saleae-logic/saleae-logic.c b/hardware/saleae-logic/saleae-logic.c index a1ab755b..44fe0a4a 100644 --- a/hardware/saleae-logic/saleae-logic.c +++ b/hardware/saleae-logic/saleae-logic.c @@ -292,7 +292,7 @@ static int hw_init(const char *deviceinfo) int err, devcnt, i, j; /* Avoid compiler warnings. */ - deviceinfo = deviceinfo; + (void)deviceinfo; if (libusb_init(&usb_context) != 0) { sr_warn("Failed to initialize USB."); @@ -554,9 +554,9 @@ static int receive_data(int fd, int revents, void *user_data) struct timeval tv; /* Avoid compiler warnings. */ - fd = fd; - revents = revents; - user_data = user_data; + (void)fd; + (void)revents; + (void)user_data; tv.tv_sec = tv.tv_usec = 0; libusb_handle_events_timeout(usb_context, &tv); @@ -780,7 +780,7 @@ static void hw_stop_acquisition(int device_index, gpointer session_data) struct sr_datafeed_packet packet; /* Avoid compiler warnings. */ - device_index = device_index; + (void)device_index; packet.type = SR_DF_END; sr_session_bus(session_data, &packet);