/** @private */
SR_PRIV void sr_usb_dev_inst_free(struct sr_usb_dev_inst *usb)
{
- /* Avoid compiler warnings. */
(void)usb;
/* Nothing to do for this device instance type. */
struct sr_dev_inst *sdi;
struct context *ctx;
- /* Avoid compiler warnings. */
(void)devinfo;
if (!(ctx = g_try_malloc0(sizeof(struct context)))) {
/* TODO: This stops acquisition on ALL devices, ignoring dev_index. */
static int hw_dev_acquisition_stop(int dev_index, void *cb_data)
{
- /* Avoid compiler warnings. */
(void)dev_index;
(void)cb_data;
int ret, i;
(void)options;
+
drvc = adi->priv;
devices = NULL;
clear_instances();
struct dev_context *devc;
uint8_t modestatus;
- /* Avoid compiler warnings. */
(void)cb_data;
sr_source_remove(0);
int i;
(void)options;
+
drvc = ddi->priv;
devices = NULL;
static int hw_dev_open(struct sr_dev_inst *sdi)
{
- /* Avoid compiler warnings. */
(void)sdi;
/* Nothing needed so far. */
static int hw_dev_close(struct sr_dev_inst *sdi)
{
- /* Avoid compiler warnings. */
(void)sdi;
/* Nothing needed so far. */
static int hw_info_get(int info_id, const void **data,
const struct sr_dev_inst *sdi)
{
-
(void)sdi;
switch (info_id) {
unsigned char c[BUFSIZE];
gsize z;
- /* Avoid compiler warnings. */
(void)fd;
(void)revents;
{
struct dev_context *devc;
- /* Avoid compiler warnings. */
(void)cb_data;
devc = sdi->priv;
gboolean is_oor;
(void)sdi;
+
if (strcmp(tokens[0], "QM"))
return NULL;
char *eptr;
(void)sdi;
+
fvalue = strtof(tokens[0], &eptr);
if (fvalue == 0.0 && eptr == tokens[0]) {
sr_err("Invalid float.");
*/
#include <libusb.h>
-
#include "fx2lafw.h"
#include "command.h"
#include "libsigrok.h"
libusb_device **devlist;
int devcnt, num_logic_probes, ret, i, j;
- /* Avoid compiler warnings. */
(void)options;
+
drvc = fdi->priv;
/* This scan always invalidates any previous scans. */
{
struct timeval tv;
- /* Avoid compiler warnings. */
(void)fd;
(void)revents;
(void)cb_data;
/* TODO: This stops acquisition on ALL devices, ignoring dev_index. */
static int hw_dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
{
-
- /* Avoid compiler warnings. */
(void)cb_data;
abort_acquisition(sdi->priv);
{
struct sr_datafeed_packet packet;
- /* Avoid compiler warnings. */
(void)sdi;
sr_dbg("Stopping acquisition.");
static int hw_init(void)
{
-
/* Nothing to do. */
return SR_OK;
double analog_out[1024];
size_t i, s;
- /* Avoid compiler warnings. */
(void)revents;
s = serial_read(fd, in, sizeof(in));
{
struct sr_datafeed_packet packet;
- /* Avoid compiler warnings. */
(void)dev_index;
packet.type = SR_DF_END;
int ret, devcnt, i, j;
(void)options;
+
drvc = zdi->priv;
devices = NULL;
static int format_match(const char *filename)
{
- /* suppress compiler warning */
(void)filename;
/* this module will handle anything you throw at it */
int i, j;
(void)sdi;
+
if (!o || !o->sdi)
return NULL;
ctx = o->internal;
{
uint8_t *outbuf;
- /* Prevent compiler warnings. */
(void)o;
if (!data_in) {
void *buf;
int ret, got_data;
- /* Avoid compiler warnings. */
(void)fd;
(void)revents;