mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
anv: fix warning about unused width variable.
We don't use width outside the debug clause here.
This commit is contained in:
parent
698ea54283
commit
1375cb3c27
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue