diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2016-01-13 23:52:11 +0100 |
---|---|---|
committer | Peter Meerwald-Stadler <pmeerw@pmeerw.net> | 2016-02-18 14:08:13 +0100 |
commit | 571aadfe3be797bd9e918df54042fe821cf9b213 (patch) | |
tree | aee5aea2253a57b46617c2aa17da4cc2df802720 /src | |
parent | d049c2941e6aef5ff33bcd0b4adece12289302b7 (diff) | |
download | pulseaudio-571aadfe3be797bd9e918df54042fe821cf9b213.tar.gz |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/module-stream-restore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-stream-restore.c b/src/modules/module-stream-restore.c index ac51ff314..37555a807 100644 --- a/src/modules/module-stream-restore.c +++ b/src/modules/module-stream-restore.c @@ -2341,7 +2341,7 @@ static void clean_up_db(struct userdata *u) { 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_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); PA_LLIST_REMOVE(struct clean_up_item, to_be_converted, item); |