From: Jani Nikula Date: Fri, 17 Jan 2014 16:21:05 +0000 (+0200) Subject: lib: fix clang compiler warning X-Git-Tag: 0.18_rc0~193 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=f94834407b0af52856b7db4be48c45ae0cf59936 lib: fix clang compiler warning With some combination of clang and talloc, not using the return value of talloc_steal() produces a warning. Ignore it, as talloc_steal() has no failure modes per documentation. --- diff --git a/lib/thread.cc b/lib/thread.cc index 4dcf7053..8f53e122 100644 --- a/lib/thread.cc +++ b/lib/thread.cc @@ -524,7 +524,7 @@ _notmuch_thread_create (void *ctx, _resolve_thread_relationships (thread); /* Commit to returning thread. */ - talloc_steal (ctx, thread); + (void) talloc_steal (ctx, thread); DONE: talloc_free (local);