Fix compiler warnings

Fixes:
simic905.c:108:9: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
simic910.c:112:9: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
pull/1831/head
Daniele Forsi IU5HKX 2025-08-07 14:14:58 +02:00
rodzic 5b1517778e
commit 891070941f
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -84,6 +84,7 @@ frameGet(int fd, unsigned char *buf)
void frameParse(int fd, unsigned char *frame, int len)
{
double freq;
int freq_len = 5;
if (len == 0)
{
@ -105,7 +106,6 @@ void frameParse(int fd, unsigned char *frame, int len)
case 0x03:
//from_bcd(frameackbuf[2], (civ_731_mode ? 4 : 5) * 2);
int freq_len = 5;
if (current_vfo == RIG_VFO_A || current_vfo == RIG_VFO_MAIN)
{

Wyświetl plik

@ -85,6 +85,7 @@ frameGet(int fd, unsigned char *buf)
void frameParse(int fd, unsigned char *frame, int len)
{
double freq;
int freq_len = 5;
if (len == 0)
{
@ -109,7 +110,6 @@ void frameParse(int fd, unsigned char *frame, int len)
case 0x03:
//from_bcd(frameackbuf[2], (civ_731_mode ? 4 : 5) * 2);
int freq_len = 5;
if (current_vfo == RIG_VFO_A || current_vfo == RIG_VFO_MAIN)
{