gpointer chunk;
/* Avoid compiler warnings. */
- in_unitsize = in_unitsize;
- probelist = probelist;
+ (void)in_unitsize;
+ (void)probelist;
if (ds->chunklist == NULL)
chunk = new_chunk(&ds);
struct sigma *sigma;
/* Avoid compiler warnings. */
- deviceinfo = deviceinfo;
+ (void)deviceinfo;
if (!(sigma = g_try_malloc(sizeof(struct sigma)))) {
sr_err("sigma: %s: sigma malloc failed", __func__);
uint64_t running_msec;
struct timeval tv;
- fd = fd;
- revents = revents;
+ /* Avoid compiler warnings. */
+ (void)fd;
+ (void)revents;
numchunks = (sigma->state.stoppos + 511) / 512;
struct triggerinout triggerinout_conf;
struct triggerlut lut;
- session_data = session_data;
+ /* Avoid compiler warnings. */
+ (void)session_data;
if (!(sdi = sr_get_device_instance(device_instances, device_index)))
return SR_ERR;
sigma = sdi->priv;
- session_data = session_data;
+ /* Avoid compiler warnings. */
+ (void)session_data;
/* Stop acquisition. */
sigma_set_register(WRITE_MODE, 0x11, sigma);
sr_spew("la8: entering %s", __func__);
/* Avoid compiler errors. */
- deviceinfo = deviceinfo;
+ (void)deviceinfo;
/* Allocate memory for our private driver context. */
if (!(la8 = g_try_malloc(sizeof(struct la8)))) {
struct la8 *la8;
/* Avoid compiler errors. */
- fd = fd;
- revents = revents;
+ (void)fd;
+ (void)revents;
if (!(sdi = session_data)) {
sr_err("la8: %s: user_data was NULL", __func__);
struct sr_device_instance *sdi;
/* Avoid compiler warnings. */
- deviceinfo = deviceinfo;
+ (void)deviceinfo;
sdi = sr_device_instance_new(0, SR_ST_ACTIVE, DEMONAME, NULL, NULL);
if (!sdi) {
static int hw_opendev(int device_index)
{
/* Avoid compiler warnings. */
- device_index = device_index;
+ (void)device_index;
/* Nothing needed so far. */
static int hw_closedev(int device_index)
{
/* Avoid compiler warnings. */
- device_index = device_index;
+ (void)device_index;
/* Nothing needed so far. */
static int hw_get_status(int device_index)
{
/* Avoid compiler warnings. */
- device_index = device_index;
+ (void)device_index;
return SR_ST_ACTIVE;
}
char *stropt;
/* Avoid compiler warnings. */
- device_index = device_index;
+ (void)device_index;
if (capability == SR_HWCAP_PROBECONFIG) {
/* Nothing to do, but must be supported */
gsize z;
/* Avoid compiler warnings. */
- fd = fd;
- revents = revents;
+ (void)fd;
+ (void)revents;
do {
g_io_channel_read_chars(channels[0],
static void hw_stop_acquisition(int device_index, gpointer session_data)
{
/* Avoid compiler warnings. */
- device_index = device_index;
- session_data = session_data;
+ (void)device_index;
+ (void)session_data;
/* Stop generate thread. */
thread_running = 0;
struct sr_datafeed_packet packet;
/* Avoid compiler warnings. */
- device_index = device_index;
+ (void)device_index;
packet.type = SR_DF_END;
sr_session_bus(session_device_id, &packet);
int err, devcnt, i, j;
/* Avoid compiler warnings. */
- deviceinfo = deviceinfo;
+ (void)deviceinfo;
if (libusb_init(&usb_context) != 0) {
sr_warn("Failed to initialize USB.");
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);
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);
int err, devcnt, i;
/* Avoid compiler warnings. */
- deviceinfo = deviceinfo;
+ (void)deviceinfo;
if (libusb_init(&usb_context) != 0) {
sr_warn("Failed to initialize USB.");
void sr_usb_device_instance_free(struct sr_usb_device_instance *usb)
{
/* Avoid compiler warnings. */
- usb = usb;
+ (void)usb;
/* Nothing to do for this device instance type. */
}
char *outbuf;
/* Prevent compiler warnings. */
- o = o;
+ (void)o;
if (!data_in) {
sr_warn("binary output: %s: data_in was NULL", __func__);
void *buf;
int ret, got_data;
- /* avoid compiler warning */
- fd = fd;
- revents = revents;
+ /* Avoid compiler warnings. */
+ (void)fd;
+ (void)revents;
sr_dbg("session_driver: feed chunk");
static int hw_get_status(int device_index)
{
-
- /* avoid compiler warning */
- device_index = device_index;
+ /* Avoid compiler warnings. */
+ (void)device_index;
if (devices)
return SR_OK;
struct sr_datafeed_packet *packet;
int err;
- /* avoid compiler warning */
- session_device_id = session_device_id;
+ /* Avoid compiler warnings. */
+ (void)session_device_id;
if (!(vdevice = get_vdevice_by_index(device_index)))
return SR_ERR;