Clean up compile/cppcheck warnings

pull/312/head
Michael Black W9MDB 2020-06-14 10:35:44 -05:00
rodzic ad08ee02e1
commit b0a956df81
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -3563,8 +3563,14 @@ int HAMLIB_API rig_get_split_vfo(RIG *rig,
vfo_t *tx_vfo)
{
const struct rig_caps *caps;
#if 0
int retcode, rc2;
#else
int retcode;
#endif
#if 0
vfo_t curr_vfo;
#endif
int cache_ms;
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
@ -3615,8 +3621,8 @@ int HAMLIB_API rig_get_split_vfo(RIG *rig,
return -RIG_ENTARGET;
}
curr_vfo = rig->state.current_vfo;
#if 0 // why were we doing this? Shouldn't need to set_vfo to figure out tx_vfo
curr_vfo = rig->state.current_vfo;
retcode = caps->set_vfo(rig, vfo);
if (retcode != RIG_OK)