Fix More Compiler Warning

This commit is contained in:
lwvmobile 2022-10-19 22:19:00 -04:00
parent 9b92855b4e
commit afba623b20
4 changed files with 15 additions and 12 deletions

View File

@ -266,7 +266,7 @@ typedef struct
int playoffsetR; int playoffsetR;
char mbe_out_dir[1024]; char mbe_out_dir[1024];
char mbe_out_file[1024]; char mbe_out_file[1024];
char mbe_out_path[1024]; char mbe_out_path[2048]; //1024
FILE *mbe_out_f; FILE *mbe_out_f;
FILE *symbol_out_f; FILE *symbol_out_f;
float audio_gain; float audio_gain;

View File

@ -346,7 +346,7 @@ processDMRdata (dsd_opts * opts, dsd_state * state)
} }
else if (strcmp (bursttype, "0001") == 0) else if (strcmp (bursttype, "0001") == 0)
{ {
sprintf(state->fsubtype, " VOICE LC Header "); sprintf(state->fsubtype, " VOICE LC ");
} }
else if (strcmp (bursttype, "0010") == 0) else if (strcmp (bursttype, "0010") == 0)
{ {

View File

@ -555,7 +555,10 @@ void dmrMSBootstrap (dsd_opts * opts, dsd_state * state)
return curr; return curr;
} }
state->dmrburstL = 16; //Use 16 for Voice? state->dmrburstL = 16; //Use 16 for Voice?
state->currentslot = 0; //force to slot 0
dibit_p = state->dmr_payload_p - 90; dibit_p = state->dmr_payload_p - 90;
//CACH + First Half Payload + Sync = 12 + 54 + 24 //CACH + First Half Payload + Sync = 12 + 54 + 24

View File

@ -515,7 +515,7 @@ void ncursesMenu (dsd_opts * opts, dsd_state * state)
mvwprintw(entry_win, 3, 3, " "); mvwprintw(entry_win, 3, 3, " ");
echo(); echo();
refresh(); refresh();
wscanw(entry_win, "%s", &opts->symbol_out_file); wscanw(entry_win, "%s", opts->symbol_out_file); //&opts->symbol_out_file
noecho(); noecho();
if (opts->symbol_out_file[0] != 0) //NULL if (opts->symbol_out_file[0] != 0) //NULL
@ -789,7 +789,7 @@ void ncursesMenu (dsd_opts * opts, dsd_state * state)
mvwprintw(entry_win, 3, 3, " "); mvwprintw(entry_win, 3, 3, " ");
echo(); echo();
refresh(); refresh();
wscanw(entry_win, "%s", &opts->audio_in_dev); wscanw(entry_win, "%s", opts->audio_in_dev); //&opts->audio_in_dev
noecho(); noecho();
//do the thing with the thing //do the thing with the thing
struct stat stat_buf; struct stat stat_buf;
@ -914,7 +914,7 @@ void ncursesMenu (dsd_opts * opts, dsd_state * state)
mvwprintw(entry_win, 8, 3, " "); mvwprintw(entry_win, 8, 3, " ");
echo(); echo();
refresh(); refresh();
wscanw(entry_win, "%d", &option); wscanw(entry_win, "%hd", &option); //%d
noecho(); noecho();
opts->dmr_mute_encL = 0; opts->dmr_mute_encL = 0;
opts->dmr_mute_encR = 0; opts->dmr_mute_encR = 0;
@ -1364,7 +1364,7 @@ void ncursesMenu (dsd_opts * opts, dsd_state * state)
mvwprintw(entry_win, 3, 3, " "); mvwprintw(entry_win, 3, 3, " ");
echo(); echo();
refresh(); refresh();
wscanw(entry_win, "%X", &state->p2_wacn); wscanw(entry_win, "%llX", &state->p2_wacn); //%X
if (state->p2_wacn > 0xFFFFF) if (state->p2_wacn > 0xFFFFF)
{ {
state->p2_wacn = 0xFFFFF; state->p2_wacn = 0xFFFFF;
@ -1377,7 +1377,7 @@ void ncursesMenu (dsd_opts * opts, dsd_state * state)
mvwprintw(entry_win, 3, 3, " "); mvwprintw(entry_win, 3, 3, " ");
echo(); echo();
refresh(); refresh();
wscanw(entry_win, "%X", &state->p2_sysid); wscanw(entry_win, "%llX", &state->p2_sysid); //%X
if (state->p2_sysid > 0xFFF) if (state->p2_sysid > 0xFFF)
{ {
state->p2_sysid = 0xFFF; state->p2_sysid = 0xFFF;
@ -1390,7 +1390,7 @@ void ncursesMenu (dsd_opts * opts, dsd_state * state)
mvwprintw(entry_win, 3, 3, " "); mvwprintw(entry_win, 3, 3, " ");
echo(); echo();
refresh(); refresh();
wscanw(entry_win, "%X", &state->p2_cc); wscanw(entry_win, "%llX", &state->p2_cc); //%X
if (state->p2_cc > 0xFFF) if (state->p2_cc > 0xFFF)
{ {
state->p2_cc = 0xFFF; state->p2_cc = 0xFFF;
@ -1422,7 +1422,7 @@ void ncursesMenu (dsd_opts * opts, dsd_state * state)
mvwprintw(entry_win, 8, 2, " "); mvwprintw(entry_win, 8, 2, " ");
echo(); echo();
refresh(); refresh();
wscanw(entry_win, "%d", &lrrpchoice); wscanw(entry_win, "%hd", &lrrpchoice); //%d
noecho(); noecho();
if (lrrpchoice == 1) if (lrrpchoice == 1)
@ -1454,7 +1454,7 @@ void ncursesMenu (dsd_opts * opts, dsd_state * state)
mvwprintw(entry_win, 3, 3, " "); mvwprintw(entry_win, 3, 3, " ");
echo(); echo();
refresh(); refresh();
wscanw(entry_win, "%s", &opts->lrrp_out_file); wscanw(entry_win, "%s", opts->lrrp_out_file); //&opts->lrrp_out_file
noecho(); noecho();
if (opts->lrrp_out_file[0] != 0) //NULL if (opts->lrrp_out_file[0] != 0) //NULL
{ {
@ -1947,7 +1947,7 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
printw (" Gain [%i] dB -", opts->rtl_gain_value); printw (" Gain [%i] dB -", opts->rtl_gain_value);
printw (" Squelch [%i]", opts->rtl_squelch_level); printw (" Squelch [%i]", opts->rtl_squelch_level);
printw (" VFO [%i] kHz\n", opts->rtl_bandwidth); printw (" VFO [%i] kHz\n", opts->rtl_bandwidth);
printw ("| Freq: [%lld] Hz", opts->rtlsdr_center_freq); printw ("| Freq: [%d] Hz", opts->rtlsdr_center_freq); //%lld
printw (" - Tuning available on UDP Port [%i]\n", opts->rtl_udp_port); printw (" - Tuning available on UDP Port [%i]\n", opts->rtl_udp_port);
} }
if (opts->audio_out_type == 0) if (opts->audio_out_type == 0)
@ -2540,7 +2540,7 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
//DMR BS Types //DMR BS Types
if (call_matrix[9-j][0] == 12 || call_matrix[9-j][0] == 13 || call_matrix[9-j][0] == 10 || call_matrix[9-j][0] == 11 ) if (call_matrix[9-j][0] == 12 || call_matrix[9-j][0] == 13 || call_matrix[9-j][0] == 10 || call_matrix[9-j][0] == 11 )
{ {
printw ("S[%d] ", call_matrix[9-j][3]); printw ("S[%lld] ", call_matrix[9-j][3]); //%d
printw ("TGT [%8lld] ", call_matrix[9-j][1]); printw ("TGT [%8lld] ", call_matrix[9-j][1]);
printw ("SRC [%8lld] ", call_matrix[9-j][2]); printw ("SRC [%8lld] ", call_matrix[9-j][2]);
printw ("DCC [%02lld] ", call_matrix[9-j][4]); printw ("DCC [%02lld] ", call_matrix[9-j][4]);