Fix cppcheck warnings

pull/345/head
Michael Black W9MDB 2020-07-08 11:48:48 -05:00
rodzic 5e801fd2b5
commit 6f8100ffc0
5 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -1606,6 +1606,7 @@ const chan_t *HAMLIB_API rig_lookup_mem_caps(RIG *rig, int ch)
*/
for (j = 0; j < sizeof(channel_cap_t); j++)
{
// cppcheck-suppress *
p1[j] |= p2[j];
}

Wyświetl plik

@ -598,6 +598,7 @@ int main(int argc, char *argv[])
handle_socket(arg);
#endif
}
// cppcheck-suppress *
while (retcode == 0);
amp_close(my_amp); /* close port */

Wyświetl plik

@ -311,6 +311,7 @@ static char *mystrtok(char *s, char delim)
}
}
// cppcheck-suppress *
return str + ent_pos;
}

Wyświetl plik

@ -306,7 +306,7 @@ void hash_sort_by_model_id()
/* Delete hash */
void hash_delete_all()
{
struct mod_lst *current_model, *tmp;
struct mod_lst *current_model, *tmp=NULL;
HASH_ITER(hh, models, current_model, tmp)
{

Wyświetl plik

@ -611,6 +611,7 @@ int main(int argc, char *argv[])
handle_socket(arg);
#endif
}
// cppcheck-suppress *
while (retcode == 0);
rot_close(my_rot); /* close port */