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 }