Fix shadow variable warnings from cppcheck

https://github.com/Hamlib/Hamlib/issues/1351
pull/1392/head
Mike Black W9MDB 2023-10-01 17:38:13 -05:00
rodzic 71f8b3b8c9
commit 18e122196f
3 zmienionych plików z 1 dodań i 5 usunięć

Wyświetl plik

@ -3580,7 +3580,6 @@ int icom_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val)
lvl_sc = 0x04;
cmd_len = 1;
{
int i;
icom_val = 0;
const float *agcp = agc_level;

Wyświetl plik

@ -130,7 +130,6 @@ int elecraft_open(RIG *rig)
if (rig->caps->rig_model == RIG_MODEL_XG3) // XG3 doesn't have ID
{
struct rig_state *rs = &rig->state;
char *cmd = "V;";
char data[32];

Wyświetl plik

@ -3387,7 +3387,7 @@ int kenwood_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val)
case RIG_LEVEL_CWPITCH:
{
/* Newer rigs have an extra digit of pitch factor */
int len = (RIG_IS_TS890S || RIG_IS_TS990S) ? 3 : 2;
len = (RIG_IS_TS890S || RIG_IS_TS990S) ? 3 : 2;
/* Round input freq to nearest multiple of step */
kenwood_val = (val.i - level_info->min.i + (level_info->step.i / 2))
@ -4304,8 +4304,6 @@ int kenwood_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status)
case RIG_FUNC_FBKIN:
{
int raw_value;
retval = kenwood_safe_transaction(rig, "SD", respbuf, 20, 6);
if (retval != RIG_OK)