Skip to content

Commit

Permalink
Remove unused statics to stop gcc warnings (#81)
Browse files Browse the repository at this point in the history
gcc 10 warns about unused static variables and functions.
  • Loading branch information
johanhedin authored May 23, 2021
1 parent f4e9206 commit 022870f
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions libairspy/src/airspy.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,7 @@ typedef struct airspy_device
static const uint16_t airspy_usb_vid = 0x1d50;
static const uint16_t airspy_usb_pid = 0x60a1;

#define STR_PRODUCT_AIRSPY_SIZE (6)
static const char str_product_airspy[STR_PRODUCT_AIRSPY_SIZE] =
{ 'A', 'I', 'R', 'S', 'P', 'Y' };

#define STR_PREFIX_SERIAL_AIRSPY_SIZE (10)
static const char str_prefix_serial_airspy[STR_PREFIX_SERIAL_AIRSPY_SIZE] =
{ 'A', 'I', 'R', 'S', 'P', 'Y', ' ', 'S', 'N', ':' };

#define SERIAL_AIRSPY_EXPECTED_SIZE (26)

Expand Down Expand Up @@ -594,19 +588,6 @@ static void airspy_open_exit(airspy_device_t* device)
device->usb_context = NULL;
}

static void upper_string(unsigned char *string, size_t len)
{
while (len > 0)
{
if (*string >= 'a' && *string <= 'z')
{
*string = *string - 32;
}
string++;
len--;
}
}

static void airspy_open_device(airspy_device_t* device,
int* ret,
uint16_t vid,
Expand Down

0 comments on commit 022870f

Please sign in to comment.