pull/1255/head
Mike Black W9MDB 2023-03-18 22:20:12 -05:00
commit 0f7908be22
10 zmienionych plików z 17 dodań i 33 usunięć

2
.gitignore vendored
Wyświetl plik

@ -8,6 +8,8 @@
*.lo
*.la
*.orig
*.sh.log
*.sh.trs
*.swp
$depbase.Tpo
Makefile

Wyświetl plik

@ -21,13 +21,7 @@ SUPPRESS="\
--suppress=*:extra/gnuradio/ssb.h \
--suppress=*:extra/gnuradio/wfm.h \
--suppress=*:extra/gnuradio/wfm.h \
--suppress=*:extra/gnuradio/HrAGC.h \
--suppress=knownConditionTrueFalse:tests/rotctl.c \
--suppress=knownConditionTrueFalse:tests/rigctl.c \
--suppress=knownConditionTrueFalse:tests/ampctl.c \
--suppress=knownConditionTrueFalse:tests/rotctl_parse.c \
--suppress=knownConditionTrueFalse:tests/rigctl_parse.c \
--suppress=knownConditionTrueFalse:tests/ampctl_parse.c"
--suppress=*:extra/gnuradio/HrAGC.h
#CHECK="\
#-D RIG_LEVEL_LINEOUT=1 \
@ -82,8 +76,9 @@ if test $# -eq 0 ; then
cppcheck --inline-suppr \
-I src \
-I include \
--include=include/hamlib/config.h \
--include=include/hamlib/rig.h \
-I include/hamlib/ \
-I lib \
-I security \
-q \
--force \
--enable=all \
@ -93,17 +88,17 @@ if test $# -eq 0 ; then
. \
>cppcheck.log 2>&1
else
cppcheck --check-config \
--inline-suppr \
cppcheck --inline-suppr \
-I src \
-I include \
--include=include/config.h \
--include=include/hamlib/rig.h \
-I include/hamlib/ \
-I lib \
-I security \
-q \
--force \
--enable=all \
--std=c99 \
$SUPPRESS \
$CHECK \
$1
"$@"
fi

Wyświetl plik

@ -472,8 +472,6 @@ int frontamp_get_conf2(AMP *amp, token_t token, char *val, int val_len)
*/
#ifdef XXREMOVEDXXC
// Not referenced anywhere
/**
* \brief Executes cfunc on all the elements stored in the configuration
* parameters table.
@ -534,7 +532,6 @@ int HAMLIB_API amp_token_foreach(AMP *amp,
return RIG_OK;
}
#endif
/**

Wyświetl plik

@ -23,7 +23,6 @@ void never_used()
amp_ext_token_lookup();
amp_probe_all();
amp_set_powerstat();
amp_token_foreach();
amp_unregister();
cm108_dcd_get();
CtrlHandler();

Wyświetl plik

@ -320,8 +320,6 @@ int main(int argc, char *argv[])
my_amp->state.ampport_deprecated.parm.serial.rate = serial_rate;
}
#if 0
/*
* print out conf parameters
*/
@ -330,8 +328,6 @@ int main(int argc, char *argv[])
amp_token_foreach(my_amp, print_conf_list, (rig_ptr_t)my_amp);
}
#endif
/*
* Print out capabilities, and exits immediately as we may be interested
* only in caps, and rig_open may fail.

Wyświetl plik

@ -1493,7 +1493,6 @@ void usage_amp(FILE *fout)
}
#if 0
int print_conf_list(const struct confparams *cfp, rig_ptr_t data)
{
AMP *amp = (AMP *) data;
@ -1538,7 +1537,7 @@ int print_conf_list(const struct confparams *cfp, rig_ptr_t data)
return 1; /* != 0, we want them all ! */
}
#endif
static int hash_model_list(const struct amp_caps *caps, void *data)
{

Wyświetl plik

@ -345,8 +345,6 @@ int main(int argc, char *argv[])
my_amp->state.ampport.parm.serial.rate = serial_rate;
}
#if 0
/*
* print out conf parameters
*/
@ -355,8 +353,6 @@ int main(int argc, char *argv[])
amp_token_foreach(my_amp, print_conf_list, (rig_ptr_t)my_amp);
}
#endif
/*
* Print out conf parameters, and exits immediately as we may be
* interested only in only caps, and rig_open may fail.

Wyświetl plik

@ -1230,9 +1230,9 @@ void *handle_socket(void *arg)
mutex_rigctld(0);
#else
mutext_rigctld(1);
mutex_rigctld(1);
retcode = rig_open(my_rig);
mutext_rigctld(1);
mutex_rigctld(1);
if (RIG_OK == retcode && verbose > RIG_DEBUG_ERR)
{

Wyświetl plik

@ -1214,9 +1214,9 @@ void *handle_socket(void *arg)
mutex_rigctld(0);
#else
mutext_rigctld(1);
mutex_rigctld(1);
retcode = rig_open(my_rig);
mutext_rigctld(1);
mutex_rigctld(1);
if (RIG_OK == retcode && verbose > RIG_DEBUG_ERR)
{

Wyświetl plik

@ -27,7 +27,7 @@
#include <string.h>
#include "config.h"
#if defined(HAVE_LIBUSB_H)
#include "libusb.h"
#include <libusb.h>
#elif defined(HAVE_LIBUSB_1_0_LIBUSB_H)
#include <libusb-1.0/libusb.h>
#endif