From f94834407b0af52856b7db4be48c45ae0cf59936 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Fri, 17 Jan 2014 18:21:05 +0200 Subject: [PATCH] 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. --- lib/thread.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);