From 7db53b8bdcc2254dc0f287c22309d8712ce287d0 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Wed, 6 Oct 2021 21:30:45 +0200 Subject: [PATCH] Fixed some compiler warnings --- openrtx/src/rtx/OpMode_M17.cpp | 2 ++ openrtx/src/rtx/rtx.cpp | 2 +- openrtx/src/threads.c | 1 + openrtx/src/ui/ui_main.c | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/openrtx/src/rtx/OpMode_M17.cpp b/openrtx/src/rtx/OpMode_M17.cpp index c2b5495c..a787c6a1 100644 --- a/openrtx/src/rtx/OpMode_M17.cpp +++ b/openrtx/src/rtx/OpMode_M17.cpp @@ -42,6 +42,8 @@ array< uint8_t, 16 > encodedData; // Buffer for encoded data void *threadFunc(void *arg) { + (void) arg; + struct CODEC2 *codec2 = codec2_create(CODEC2_MODE_3200); unique_ptr< stream_sample_t > audioBuf(new stream_sample_t[320]); streamId micId = inputStream_start(SOURCE_MIC, PRIO_TX, diff --git a/openrtx/src/rtx/rtx.cpp b/openrtx/src/rtx/rtx.cpp index 6ecfae66..155fe170 100644 --- a/openrtx/src/rtx/rtx.cpp +++ b/openrtx/src/rtx/rtx.cpp @@ -27,7 +27,7 @@ pthread_mutex_t *cfgMutex; // Mutex for incoming config messages const rtxStatus_t *newCnf; // Pointer for incoming config messages -rtxStatus_t rtxStatus = { 0 }; // RTX driver status +rtxStatus_t rtxStatus; // RTX driver status float rssi; // Current RSSI in dBm bool reinitFilter; // Flag for RSSI filter re-initialisation diff --git a/openrtx/src/threads.c b/openrtx/src/threads.c index ded227e4..4d40f1d9 100644 --- a/openrtx/src/threads.c +++ b/openrtx/src/threads.c @@ -35,6 +35,7 @@ #include #ifdef HAS_GPS #include +#include #include #endif diff --git a/openrtx/src/ui/ui_main.c b/openrtx/src/ui/ui_main.c index 5cae7b38..02b7c147 100644 --- a/openrtx/src/ui/ui_main.c +++ b/openrtx/src/ui/ui_main.c @@ -18,6 +18,7 @@ * along with this program; if not, see * ***************************************************************************/ +#include #include #include #include