Kills some warnings in jrc_set_func when compiling on Mac that weren't seen in Linux.
pull/1755/head
markjfine 2025-06-06 15:50:55 -04:00 zatwierdzone przez GitHub
rodzic 04a8503eab
commit b17644d4e3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
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) int jrc_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
{ {
char cmdbuf[BUFSZ]; char cmdbuf[BUFSZ];
int blanker; int blanker = 0;
/* Optimize: /* Optimize:
* sort the switch cases with the most frequent first * 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; blanker = 0;
else if (func == RIG_FUNC_NB) else if (func == RIG_FUNC_NB)
blanker = 1; blanker = 1;
else if (func == RIG_FUNC_NB2) else //if (func == RIG_FUNC_NB2)
blanker = 2; blanker = 2;
SNPRINTF(cmdbuf, sizeof(cmdbuf), "N%d" EOM, blanker); SNPRINTF(cmdbuf, sizeof(cmdbuf), "N%d" EOM, blanker);