#include <stdlib.h>
#include <unistd.h>
#include <string.h>
-#include <sigrok.h>
-#include <sigrok-internal.h>
#ifdef _WIN32
#include <io.h>
#include <fcntl.h>
#define pipe(fds) _pipe(fds, 4096, _O_BINARY)
#endif
#include "config.h"
+#include "sigrok.h"
+#include "sigrok-internal.h"
/* TODO: Number of probes should be configurable. */
#define NUM_PROBES 8
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;