mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
add a few more gcc warning flags and fix quite a few problems found by doing so
This commit is contained in:
parent
047eb52b52
commit
b7026bf248
99 changed files with 810 additions and 776 deletions
|
|
@ -195,11 +195,11 @@ static void cleanup_defer_events(pa_glib_mainloop *g, int force) {
|
|||
}
|
||||
|
||||
static gushort map_flags_to_glib(pa_io_event_flags_t flags) {
|
||||
return
|
||||
(flags & PA_IO_EVENT_INPUT ? G_IO_IN : 0) |
|
||||
(flags & PA_IO_EVENT_OUTPUT ? G_IO_OUT : 0) |
|
||||
(flags & PA_IO_EVENT_ERROR ? G_IO_ERR : 0) |
|
||||
(flags & PA_IO_EVENT_HANGUP ? G_IO_HUP : 0);
|
||||
return (gushort)
|
||||
((flags & PA_IO_EVENT_INPUT ? G_IO_IN : 0) |
|
||||
(flags & PA_IO_EVENT_OUTPUT ? G_IO_OUT : 0) |
|
||||
(flags & PA_IO_EVENT_ERROR ? G_IO_ERR : 0) |
|
||||
(flags & PA_IO_EVENT_HANGUP ? G_IO_HUP : 0));
|
||||
}
|
||||
|
||||
static pa_io_event_flags_t map_flags_from_glib(gushort flags) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue