mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-16 06:59:55 -05:00
build-sys: Move to compiling with C11 support
This is needed for building with anonymous unions. A bunch of calls to fail() that used to mysteriously work need fixing -- fail() is a macro that takes a printf-style message as an argument. Not passing this somehow worked with the previous compiler flags, but breaks with -std=c11.
This commit is contained in:
parent
8949ed96c6
commit
aa02e1654b
14 changed files with 98 additions and 20 deletions
|
|
@ -48,7 +48,7 @@ static void func(pa_mainloop_api *m, pa_signal_event *e, int sig, void *userdata
|
|||
if ((now - start) >= 30) {
|
||||
m->quit(m, 1);
|
||||
fprintf(stderr, "Test failed\n");
|
||||
fail();
|
||||
ck_abort();
|
||||
} else
|
||||
raise(SIGUSR1);
|
||||
}
|
||||
|
|
@ -78,7 +78,7 @@ START_TEST (cpulimit_test) {
|
|||
|
||||
if ((now - start) >= 30) {
|
||||
fprintf(stderr, "Test failed\n");
|
||||
fail();
|
||||
ck_abort();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue