projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
698ea54
)
anv: fix warning about unused width variable.
author
Dave Airlie
<airlied@redhat.com>
Wed, 17 Feb 2016 02:23:18 +0000
(12:23 +1000)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 19 Feb 2016 16:01:54 +0000
(08:01 -0800)
We don't use width outside the debug clause here.
src/intel/genxml/gen_pack_header.py
patch
|
blob
|
history
diff --git
a/src/intel/genxml/gen_pack_header.py
b/src/intel/genxml/gen_pack_header.py
index 3cabb5864aa384d6c233614055a4f429ae4cb090..75c4f269cdd3e903e482d3174c2014d69924cf56 100755
(executable)
--- a/
src/intel/genxml/gen_pack_header.py
+++ b/
src/intel/genxml/gen_pack_header.py
@@
-62,11
+62,10
@@
__gen_mbo(uint32_t start, uint32_t end)
static inline uint64_t
__gen_uint(uint64_t v, uint32_t start, uint32_t end)
{
- const int width = end - start + 1;
-
__gen_validate_value(v);
#if DEBUG
+ const int width = end - start + 1;
if (width < 64) {
const uint64_t max = (1ull << width) - 1;
assert(v <= max);