aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Slusarz2011-06-12 09:40:40 -0500
committerMarcin Slusarz2011-09-18 08:26:16 -0500
commit7d8381614174c6c70c5676cb230f0d9b034b27aa (patch)
tree44066154c35e72aebed7a6d07643a6a762e467c1 /nouveau
parent763b618d55a973807823bb1a1c6e60b9e2db6d8b (diff)
downloadexternal-libgbm-7d8381614174c6c70c5676cb230f0d9b034b27aa.tar.gz
external-libgbm-7d8381614174c6c70c5676cb230f0d9b034b27aa.tar.xz
external-libgbm-7d8381614174c6c70c5676cb230f0d9b034b27aa.zip
nouveau: assert argument cannot have side effects
... because argument is evaluated only if NDEBUG is not defined
Diffstat (limited to 'nouveau')
-rw-r--r--nouveau/nouveau_pushbuf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nouveau/nouveau_pushbuf.c b/nouveau/nouveau_pushbuf.c
index 90836bcd..59f60d9f 100644
--- a/nouveau/nouveau_pushbuf.c
+++ b/nouveau/nouveau_pushbuf.c
@@ -270,7 +270,8 @@ nouveau_pushbuf_flush(struct nouveau_channel *chan, unsigned min)
270 nvpb->nr_push = 0; 270 nvpb->nr_push = 0;
271 271
272 /* Allocate space for next push buffer */ 272 /* Allocate space for next push buffer */
273 assert(!nouveau_pushbuf_space(chan, min)); 273 if (nouveau_pushbuf_space(chan, min))
274 assert(0);
274 275
275 if (chan->flush_notify) 276 if (chan->flush_notify)
276 chan->flush_notify(chan); 277 chan->flush_notify(chan);