Kills some warnings in jrc_set_func when compiling on Mac that weren't seen in Linux.

(cherry picked from commit b17644d4e3)
Hamlib-4.6.3
markjfine 2025-06-06 15:50:55 -04:00 zatwierdzone przez Nate Bargmann
rodzic 26340d9a8a
commit bb8b764412
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: FB2C5130D55A8819
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -466,7 +466,7 @@ int jrc_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
int jrc_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
{
char cmdbuf[BUFSZ];
int blanker;
int blanker = 0;
/* Optimize:
* sort the switch cases with the most frequent first
@ -485,7 +485,7 @@ int jrc_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
blanker = 0;
else if (func == RIG_FUNC_NB)
blanker = 1;
else if (func == RIG_FUNC_NB2)
else //if (func == RIG_FUNC_NB2)
blanker = 2;
SNPRINTF(cmdbuf, sizeof(cmdbuf), "N%d" EOM, blanker);