Fix Compiler Errors if librtlsdr not found;

This commit is contained in:
lwvmobile
2023-09-20 03:39:03 -04:00
parent 2222d86e02
commit 9506bd5f77
2 changed files with 8 additions and 0 deletions

View File

@@ -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
}

View File

@@ -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
}