diff options
author | Dave Airlie <[email protected]> | 2016-02-17 12:23:18 +1000 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-02-19 08:01:54 -0800 |
commit | 1375cb3c273453920d9a15fb6ca67714f534704d (patch) | |
tree | b6b3d9cfdc7970f92fc34c58988b746963c32d7a /src/intel/genxml/gen_pack_header.py | |
parent | 698ea542830ba0d56e514492fbdf73e3898d4c17 (diff) |
anv: fix warning about unused width variable.
We don't use width outside the debug clause here.
Diffstat (limited to 'src/intel/genxml/gen_pack_header.py')
-rwxr-xr-x | src/intel/genxml/gen_pack_header.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/intel/genxml/gen_pack_header.py b/src/intel/genxml/gen_pack_header.py index 3cabb5864aa..75c4f269cdd 100755 --- 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); |