projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
763b618
)
nouveau: assert argument cannot have side effects
author
Marcin Slusarz
<marcin.slusarz@gmail.com>
Sun, 12 Jun 2011 14:40:40 +0000
(16:40 +0200)
committer
Marcin Slusarz
<marcin.slusarz@gmail.com>
Sun, 18 Sep 2011 13:26:16 +0000
(15:26 +0200)
... because argument is evaluated only if NDEBUG is not defined
nouveau/nouveau_pushbuf.c
patch
|
blob
|
history
diff --git
a/nouveau/nouveau_pushbuf.c
b/nouveau/nouveau_pushbuf.c
index
90836bc
..
59f60d9
100644
(file)
--- 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);