projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53295be
)
gallium/util: fix 'statement with no effect' warning
author
Brian Paul
<brianp@vmware.com>
Fri, 27 Feb 2015 19:49:29 +0000
(12:49 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 27 Feb 2015 22:20:15 +0000
(15:20 -0700)
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_math.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_math.h
b/src/gallium/auxiliary/util/u_math.h
index 959f76e1dd81e89bd6e0b047bbcf464c24824f34..5400fcead59e5a4b7eb0ac31390c873054b0e661 100644
(file)
--- a/
src/gallium/auxiliary/util/u_math.h
+++ b/
src/gallium/auxiliary/util/u_math.h
@@
-581,8
+581,8
@@
util_bitcount(unsigned n)
* Requires only one iteration per set bit, instead of
* one iteration per bit less than highest set bit.
*/
- unsigned bits
= 0
;
- for (bits; n; bits++) {
+ unsigned bits;
+ for (bits
= 0
; n; bits++) {
n &= n - 1;
}
return bits;