Quell variable set but not used warning.

Hamlib-1.2.15
Nate Bargmann 2012-01-12 15:44:29 -06:00
rodzic 5f3226c2aa
commit 39fe57864f
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -161,7 +161,6 @@ int cm108_ptt_set(hamlib_port_t *p, ptt_t pttx)
switch(p->type.ptt) {
case RIG_PTT_CM108:
{
int status;
// Build a packet for CM108 HID to turn GPIO bit on or off.
// Packet is 4 bytes, preceded by a 'report number' byte
@ -192,7 +191,7 @@ int cm108_ptt_set(hamlib_port_t *p, ptt_t pttx)
// Send the HID packet
nw = write(p->fd, out_rep, sizeof(out_rep));
if (nw < 0) {
status = -RIG_EIO;
return -RIG_EIO;
}
return RIG_OK;