From: Mark Karpilovskij Date: Mon, 23 Jul 2018 11:55:25 +0000 (+0200) Subject: knot/common: shut up MacOS compiler warning X-Git-Tag: v2.7.0~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90a6196db656ba49b1119bc4e1a8162bc129236b;p=thirdparty%2Fknot-dns.git knot/common: shut up MacOS compiler warning --- diff --git a/src/knot/common/evsched.c b/src/knot/common/evsched.c index e6e97e1036..798e4271a9 100644 --- a/src/knot/common/evsched.c +++ b/src/knot/common/evsched.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2011 CZ.NIC, z.s.p.o. +/* Copyright (C) 2018 CZ.NIC, z.s.p.o. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -70,7 +70,7 @@ static int evsched_run(dthread_t *thread) /* Run event loop. */ pthread_mutex_lock(&sched->heap_lock); while (!dt_is_cancelled(thread)) { - if (EMPTY_HEAP(&sched->heap)) { + if (!!EMPTY_HEAP(&sched->heap)) { pthread_cond_wait(&sched->notify, &sched->heap_lock); continue; }