Fix unused cppcheck warnings

https://github.com/Hamlib/Hamlib/issues/1351
pull/1392/head
Mike Black W9MDB 2023-10-01 12:01:38 -05:00
rodzic e1e7112cb5
commit f00661a8ae
10 zmienionych plików z 15 dodań i 28 usunięć

Wyświetl plik

@ -87,18 +87,18 @@ enum ft600_native_cmd_e
*/ */
typedef struct typedef struct
{ {
unsigned char band_no; // unsigned char band_no;
unsigned char freq[16]; unsigned char freq[16];
unsigned char mode; // unsigned char mode;
unsigned char ctcss; // unsigned char ctcss;
unsigned char dcs; // unsigned char dcs;
unsigned char flag1; // unsigned char flag1;
unsigned char flag2; // unsigned char flag2;
unsigned char clarifier[2]; // unsigned char clarifier[2];
unsigned char not_used; // unsigned char not_used;
unsigned char step1; // unsigned char step1;
unsigned char step2; // unsigned char step2;
unsigned char filter; // unsigned char filter;
// cppcheck-suppress * // cppcheck-suppress *
unsigned char stuffing[16]; unsigned char stuffing[16];

Wyświetl plik

@ -98,9 +98,9 @@ typedef struct satel_stat satel_stat_t;
struct satel_stat struct satel_stat
{ {
bool motion_enabled; bool motion_enabled;
int mode; // int mode;
time_t time; // time_t time;
int absolute; // int absolute;
int az; int az;
int el; int el;
}; };

Wyświetl plik

@ -88,9 +88,6 @@ int openPort(char *comport) // doesn't matter for using pts devices
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
unsigned char buf[256]; unsigned char buf[256];
unsigned char *pbuf;
int n;
again: again:
int fd = openPort(argv[1]); int fd = openPort(argv[1]);

Wyświetl plik

@ -88,7 +88,6 @@ int openPort(char *comport) // doesn't matter for using pts devices
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
unsigned char buf[256]; unsigned char buf[256];
unsigned char *pbuf;
int n; int n;

Wyświetl plik

@ -88,7 +88,6 @@ int openPort(char *comport) // doesn't matter for using pts devices
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
unsigned char buf[256]; unsigned char buf[256];
unsigned char *pbuf;
int n; int n;

Wyświetl plik

@ -88,7 +88,6 @@ int openPort(char *comport) // doesn't matter for using pts devices
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
unsigned char buf[256]; unsigned char buf[256];
unsigned char *pbuf;
int n; int n;

Wyświetl plik

@ -145,8 +145,6 @@ int openPort(char *comport) // doesn't matter for using pts devices
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
char buf[256]; char buf[256];
char *pbuf;
int n;
int fd = openPort(argv[1]); int fd = openPort(argv[1]);
load_dat("simft990.dat", alldata); load_dat("simft990.dat", alldata);

Wyświetl plik

@ -71,7 +71,7 @@ void dumphex(unsigned char *buf, int n)
int int
frameGet(int fd, unsigned char *buf) frameGet(int fd, unsigned char *buf)
{ {
int i = 0, n; int i = 0;
memset(buf, 0, BUFSIZE); memset(buf, 0, BUFSIZE);
unsigned char c; unsigned char c;

Wyświetl plik

@ -88,9 +88,6 @@ int openPort(char *comport) // doesn't matter for using pts devices
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
unsigned char buf[256]; unsigned char buf[256];
unsigned char *pbuf;
int n;
again: again:
int fd = openPort(argv[1]); int fd = openPort(argv[1]);

Wyświetl plik

@ -295,8 +295,6 @@ int cm108_ptt_get(hamlib_port_t *p, ptt_t *pttx)
*/ */
int cm108_dcd_get(hamlib_port_t *p, dcd_t *dcdx) int cm108_dcd_get(hamlib_port_t *p, dcd_t *dcdx)
{ {
int bytes;
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
return RIG_OK; return RIG_OK;