[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 6f8100ffc0ba555b8dae9
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2020-07-08 16:51:22
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Hamlib -- Ham radio control libraries". The branch, master has been updated via 6f8100ffc0ba555b8dae96a56d61fefbb7624c06 (commit) from 5e801fd2b504c77b59d99c079858b30be09ba922 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 6f8100ffc0ba555b8dae96a56d61fefbb7624c06 Author: Michael Black W9MDB <mdb...@ya...> Date: Wed Jul 8 11:48:48 2020 -0500 Fix cppcheck warnings diff --git a/src/mem.c b/src/mem.c index c698c7ab..7c3b96c0 100644 --- a/src/mem.c +++ b/src/mem.c @@ -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]; } diff --git a/tests/ampctld.c b/tests/ampctld.c index e5244eae..6f99b525 100644 --- a/tests/ampctld.c +++ b/tests/ampctld.c @@ -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 */ diff --git a/tests/memcsv.c b/tests/memcsv.c index ab997939..ddd149b2 100644 --- a/tests/memcsv.c +++ b/tests/memcsv.c @@ -311,6 +311,7 @@ static char *mystrtok(char *s, char delim) } } + // cppcheck-suppress * return str + ent_pos; } diff --git a/tests/rotctl_parse.c b/tests/rotctl_parse.c index a0dce570..876ce271 100644 --- a/tests/rotctl_parse.c +++ b/tests/rotctl_parse.c @@ -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) { diff --git a/tests/rotctld.c b/tests/rotctld.c index ffc33bbc..065a6ea7 100644 --- a/tests/rotctld.c +++ b/tests/rotctld.c @@ -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 */ ----------------------------------------------------------------------- Summary of changes: src/mem.c | 1 + tests/ampctld.c | 1 + tests/memcsv.c | 1 + tests/rotctl_parse.c | 2 +- tests/rotctld.c | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |