Merge pull request #2715 from matt335672/c7_compile_error

Fix compile errors detected by the older gcc 4.8.5 compiler:-
This commit is contained in:
matt335672 2023-06-08 11:36:51 +01:00 committed by GitHub
commit a2798fe9e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1118,9 +1118,10 @@ process_pcm_message(int id, int size, struct stream *s)
char *buf = (char *) g_malloc(g_bbuf_size, 0); char *buf = (char *) g_malloc(g_bbuf_size, 0);
if (buf != NULL) if (buf != NULL)
{ {
int i;
silence_start_time = g_time3(); silence_start_time = g_time3();
sending_silence = 1; sending_silence = 1;
for (int i = 0; i < send_silence_times; i++) for (i = 0; i < send_silence_times; i++)
{ {
g_memset(buf, 0, g_bbuf_size); g_memset(buf, 0, g_bbuf_size);
sound_send_wave_data_chunk(buf, g_bbuf_size); sound_send_wave_data_chunk(buf, g_bbuf_size);

View File

@ -517,5 +517,5 @@ main(int argc, char **argv)
} }
g_deinit(); g_deinit();
g_exit(error); return error;
} }