mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-25 08:57:05 -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
|
|
@ -405,7 +405,7 @@ static void device_added_time_cb(pa_mainloop_api *ea, pa_time_event *ev, const s
|
|||
dbus_error_init(&error);
|
||||
|
||||
if (!pa_hashmap_get(td->u->devices, td->udi)) {
|
||||
int b;
|
||||
dbus_bool_t b;
|
||||
struct device *d;
|
||||
|
||||
b = libhal_device_exists(td->u->context, td->udi, &error);
|
||||
|
|
@ -433,7 +433,7 @@ static void device_added_cb(LibHalContext *context, const char *udi) {
|
|||
struct timeval tv;
|
||||
struct timerdata *t;
|
||||
struct userdata *u;
|
||||
int good = 0;
|
||||
pa_bool_t good = FALSE;
|
||||
|
||||
pa_assert_se(u = libhal_ctx_get_user_data(context));
|
||||
|
||||
|
|
@ -749,17 +749,17 @@ int pa__init(pa_module*m) {
|
|||
}
|
||||
|
||||
if ((api = pa_modargs_get_value(ma, "api", NULL))) {
|
||||
int good = 0;
|
||||
pa_bool_t good = FALSE;
|
||||
|
||||
#ifdef HAVE_ALSA
|
||||
if (strcmp(api, CAPABILITY_ALSA) == 0) {
|
||||
good = 1;
|
||||
good = TRUE;
|
||||
api = CAPABILITY_ALSA;
|
||||
}
|
||||
#endif
|
||||
#ifdef HAVE_OSS
|
||||
if (strcmp(api, CAPABILITY_OSS) == 0) {
|
||||
good = 1;
|
||||
good = TRUE;
|
||||
api = CAPABILITY_OSS;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue