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
2 changed files with 3 additions and 2 deletions
+2 -1
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);
if (buf != NULL)
{
int i;
silence_start_time = g_time3();
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);
sound_send_wave_data_chunk(buf, g_bbuf_size);
+1 -1
View File
@@ -517,5 +517,5 @@ main(int argc, char **argv)
}
g_deinit();
g_exit(error);
return error;
}