Remove set but unused variable errors in m2.

Hamlib-1.2.15
Nate Bargmann 2011-08-26 14:06:14 -05:00
rodzic d691a0d9dc
commit 0605681c95
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -86,16 +86,22 @@ static int rc2800_parse (char *s, char *device, float *value)
{ {
msgtype=1; msgtype=1;
i = sscanf(s+6, "%d", &errcode); i = sscanf(s+6, "%d", &errcode);
if (i == EOF)
return -RIG_EINVAL;
} }
else if (!strncmp(s+2, "P=", 2)) else if (!strncmp(s+2, "P=", 2))
{ {
msgtype=2; msgtype=2;
i = num_sscanf(s+5, "%f", value); i = num_sscanf(s+5, "%f", value);
if (i == EOF)
return -RIG_EINVAL;
} }
else if (s[1] == '=') else if (s[1] == '=')
{ {
msgtype=2; msgtype=2;
i = num_sscanf(s+2, "%f", value); i = num_sscanf(s+2, "%f", value);
if (i == EOF)
return -RIG_EINVAL;
} }
} }
} }