kopia lustrzana https://github.com/Hamlib/Hamlib
Kill warnings
Kills some warnings in jrc_set_func when compiling on Mac that weren't seen in Linux.pull/1755/head
rodzic
04a8503eab
commit
b17644d4e3
|
@ -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);
|
||||||
|
|
Ładowanie…
Reference in New Issue