From: Marcin Slusarz Date: Sun, 12 Jun 2011 14:40:40 +0000 (+0200) Subject: nouveau: assert argument cannot have side effects X-Git-Tag: submit/1.0/20121108.012404~140 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d8381614174c6c70c5676cb230f0d9b034b27aa;p=profile%2Fivi%2Flibdrm.git nouveau: assert argument cannot have side effects ... because argument is evaluated only if NDEBUG is not defined --- diff --git a/nouveau/nouveau_pushbuf.c b/nouveau/nouveau_pushbuf.c index 90836bc..59f60d9 100644 --- a/nouveau/nouveau_pushbuf.c +++ b/nouveau/nouveau_pushbuf.c @@ -270,7 +270,8 @@ nouveau_pushbuf_flush(struct nouveau_channel *chan, unsigned min) nvpb->nr_push = 0; /* Allocate space for next push buffer */ - assert(!nouveau_pushbuf_space(chan, min)); + if (nouveau_pushbuf_space(chan, min)) + assert(0); if (chan->flush_notify) chan->flush_notify(chan);