From 9506bd5f77699527c2a08e9a0363ef1b2082ce09 Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Wed, 20 Sep 2023 03:39:03 -0400 Subject: [PATCH] Fix Compiler Errors if librtlsdr not found; --- src/dsd_main.c | 5 +++++ src/dsd_ncurses.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/dsd_main.c b/src/dsd_main.c index 0defb59..85e7ccc 100644 --- a/src/dsd_main.c +++ b/src/dsd_main.c @@ -1470,10 +1470,14 @@ cleanupAndExit (dsd_opts * opts, dsd_state * state) closeWavOutFileR (opts, state); } closeSymbolOutFile (opts, state); + + #ifdef USE_RTLSDR if (opts->rtl_started == 1) { cleanup_rtlsdr_stream(); } + #endif + if (opts->use_ncurses_terminal == 1) { ncursesClose(opts); @@ -2654,6 +2658,7 @@ main (int argc, char **argv) sprintf (opts.audio_in_dev, "%s", "pulse"); opts.audio_in_type = 0; } + UNUSED(vendor); UNUSED(product); UNUSED(serial); UNUSED(userdev); UNUSED(device_count); #endif } diff --git a/src/dsd_ncurses.c b/src/dsd_ncurses.c index 6b05283..f2715f0 100644 --- a/src/dsd_ncurses.c +++ b/src/dsd_ncurses.c @@ -784,6 +784,9 @@ void ncursesMenu (dsd_opts * opts, dsd_state * state) choicec = 18; //exit to decoder screen only if confirmed, otherwise, just go back } + #else + UNUSED(confirm); + #endif }