Remove set but unused variable errors in yaesu.

Hamlib-1.2.15
Nate Bargmann 2011-08-25 11:13:07 -05:00
rodzic c1b077c61c
commit 8866aa2bcb
4 zmienionych plików z 0 dodań i 19 usunięć

Wyświetl plik

@ -371,14 +371,12 @@ int ft100_close(RIG *rig) {
static int ft100_send_priv_cmd(RIG *rig, unsigned char cmd_index) {
struct rig_state *rig_s;
struct ft100_priv_data *priv;
unsigned char *cmd; /* points to sequence to send */
rig_debug(RIG_DEBUG_VERBOSE,"%s called (%d)\n", __func__, cmd_index);
if (!rig) return -RIG_EINVAL;
priv = (struct ft100_priv_data*)rig->state.priv;
rig_s = &rig->state;
cmd = (unsigned char *) &ncmd[cmd_index].nseq; /* get native sequence */
@ -436,14 +434,11 @@ static int ft100_read_flags(RIG *rig)
int ft100_set_freq(RIG *rig, vfo_t vfo, freq_t freq) {
struct rig_state *rig_s;
struct ft100_priv_data *priv;
unsigned char p_cmd[YAESU_CMD_LENGTH];
unsigned char cmd_index; /* index of sequence to send */
if (!rig) return -RIG_EINVAL;
priv = (struct ft100_priv_data*)rig->state.priv;
rig_s = &rig->state;
rig_debug(RIG_DEBUG_VERBOSE,"ft100: requested freq = %"PRIfreq" Hz \n", freq);

Wyświetl plik

@ -912,16 +912,12 @@ int ft1000mp_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) {
*/
int ft1000mp_set_vfo(RIG *rig, vfo_t vfo) {
struct rig_state *rig_s;
struct ft1000mp_priv_data *p;
unsigned char cmd_index = 0; /* index of sequence to send */
rig_debug(RIG_DEBUG_TRACE,"ft1000mp: ft1000mp_set_vfo called %s\n", rig_strvfo(vfo));
p = (struct ft1000mp_priv_data*)rig->state.priv;
rig_s = &rig->state;
/*
* RIG_VFO_VFO/RIG_VFO_MEM are not available

Wyświetl plik

@ -577,13 +577,10 @@ int ft747_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) {
*
*/
int ft747_set_vfo(RIG *rig, vfo_t vfo) {
struct rig_state *rig_s;
struct ft747_priv_data *p;
unsigned char cmd_index; /* index of sequence to send */
p = (struct ft747_priv_data*)rig->state.priv;
rig_s = &rig->state;
switch(vfo) {
@ -824,12 +821,9 @@ static int ft747_get_update_data(RIG *rig) {
static int ft747_send_priv_cmd(RIG *rig, unsigned char ci) {
struct rig_state *rig_s;
struct ft747_priv_data *p;
unsigned char *cmd; /* points to sequence to send */
unsigned char cmd_index; /* index of sequence to send */
p = (struct ft747_priv_data*)rig->state.priv;
rig_s = &rig->state;
cmd_index = ci; /* get command */

Wyświetl plik

@ -2222,15 +2222,11 @@ int ft990_get_mem(RIG *rig, vfo_t vfo, int *ch)
*/
int ft990_set_channel (RIG *rig, const channel_t *chan)
{
struct ft990_priv_data *priv;
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
if (!rig)
return -RIG_EINVAL;
priv = (struct ft990_priv_data *) rig->state.priv;
return -RIG_ENIMPL;
}