summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
inline | side by side (from parent 1:
9ab95e5)
Also, drop a <poll.h> #include. It's unused anyway, and breaks the build
on MinGW/Windows as there is no poll.h there.
int capacity, size, num_chunks, chunk_bytes_free, chunk_offset;
gpointer chunk;
int capacity, size, num_chunks, chunk_bytes_free, chunk_offset;
gpointer chunk;
+ /* Avoid compiler warnings. */
in_unitsize = in_unitsize;
probelist = probelist;
in_unitsize = in_unitsize;
probelist = probelist;
static int hw_init(char *deviceinfo)
{
static int hw_init(char *deviceinfo)
{
- /* Avoid compiler warning. */
+ /* Avoid compiler warnings. */
deviceinfo = deviceinfo;
struct sigrok_device_instance *sdi;
deviceinfo = deviceinfo;
struct sigrok_device_instance *sdi;
static int hw_opendev(int device_index)
{
static int hw_opendev(int device_index)
{
- /* Avoid compiler warning. */
+ /* Avoid compiler warnings. */
device_index = device_index;
/* Nothing needed so far. */
device_index = device_index;
/* Nothing needed so far. */
static void hw_closedev(int device_index)
{
static void hw_closedev(int device_index)
{
- /* Avoid compiler warning. */
+ /* Avoid compiler warnings. */
device_index = device_index;
/* Nothing needed so far. */
device_index = device_index;
/* Nothing needed so far. */
static int hw_get_status(int device_index)
{
static int hw_get_status(int device_index)
{
- /* Avoid compiler warning. */
+ /* Avoid compiler warnings. */
device_index = device_index;
return 0; /* FIXME */
device_index = device_index;
return 0; /* FIXME */
int ret;
uint64_t *tmp_u64;
int ret;
uint64_t *tmp_u64;
- /* Avoid compiler warning. */
+ /* Avoid compiler warnings. */
device_index = device_index;
if (capability == HWCAP_SAMPLERATE) {
device_index = device_index;
if (capability == HWCAP_SAMPLERATE) {
{
struct datafeed_packet packet;
{
struct datafeed_packet packet;
+ /* Avoid compiler warnings. */
device_index = device_index;
/* Send last packet. */
device_index = device_index;
/* Send last packet. */
{
struct datafeed_packet packet;
{
struct datafeed_packet packet;
+ /* Avoid compiler warnings. */
device_index = device_index;
packet.type = DF_END;
device_index = device_index;
packet.type = DF_END;
libusb_device **devlist;
int err, devcnt, i;
libusb_device **devlist;
int err, devcnt, i;
+ /* Avoid compiler warnings. */
deviceinfo = deviceinfo;
if (libusb_init(&usb_context) != 0) {
deviceinfo = deviceinfo;
if (libusb_init(&usb_context) != 0) {
+ /* Avoid compiler warnings. */
fd = fd;
revents = revents;
user_data = user_data;
fd = fd;
revents = revents;
user_data = user_data;
{
struct datafeed_packet packet;
{
struct datafeed_packet packet;
+ /* Avoid compiler warnings. */
device_index = device_index;
packet.type = DF_END;
device_index = device_index;
packet.type = DF_END;
libusb_device **devlist;
int err, devcnt, i;
libusb_device **devlist;
int err, devcnt, i;
+ /* Avoid compiler warnings. */
deviceinfo = deviceinfo;
if (libusb_init(&usb_context) != 0) {
deviceinfo = deviceinfo;
if (libusb_init(&usb_context) != 0) {
void usb_device_instance_free(struct usb_device_instance *usb)
{
void usb_device_instance_free(struct usb_device_instance *usb)
{
+ /* Avoid compiler warnings. */
usb = usb;
/* Nothing to do for this device instance type. */
usb = usb;
/* Nothing to do for this device instance type. */
{
struct session *session;
{
struct session *session;
+ /* Avoid compiler warnings. */
+ filename = filename;
+
/* TODO: Implement. */
session = NULL;
/* TODO: Implement. */
session = NULL;
- /* QUICK HACK */
- filename = filename;
-