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:
commit
a2798fe9e9
@ -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);
|
||||||
|
@ -517,5 +517,5 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_deinit();
|
g_deinit();
|
||||||
g_exit(error);
|
return error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user