mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
modules: Fix compiler warning comparing 0 with bool
modules/module-stream-restore.c: In function 'clean_up_db':
modules/module-stream-restore.c:2344:74: warning: comparison of constant '0' with boolean expression is always true [-Wbool-compare]
pa_assert_se(entry_write(u, item->entry_name, item->entry, true) >= 0);
reported by Ubuntu gcc-6
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
d049c2941e
commit
571aadfe3b
1 changed files with 1 additions and 1 deletions
|
|
@ -2341,7 +2341,7 @@ static void clean_up_db(struct userdata *u) {
|
||||||
PA_LLIST_FOREACH_SAFE(item, next, to_be_converted) {
|
PA_LLIST_FOREACH_SAFE(item, next, to_be_converted) {
|
||||||
pa_log_debug("Upgrading a legacy entry to the current format: %s", item->entry_name);
|
pa_log_debug("Upgrading a legacy entry to the current format: %s", item->entry_name);
|
||||||
|
|
||||||
pa_assert_se(entry_write(u, item->entry_name, item->entry, true) >= 0);
|
pa_assert_se(entry_write(u, item->entry_name, item->entry, true));
|
||||||
trigger_save(u);
|
trigger_save(u);
|
||||||
|
|
||||||
PA_LLIST_REMOVE(struct clean_up_item, to_be_converted, item);
|
PA_LLIST_REMOVE(struct clean_up_item, to_be_converted, item);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue