mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
nir: add extra const notation in compare_blocks()
MSVC warns about different const qualifiers. Add the extra const to silence it. nir_phi_builder.c(244) : warning C4090: 'initializing' : different 'const' qualifiers nir_phi_builder.c(245) : warning C4090: 'initializing' : different 'const' qualifiers Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
a2dea3b654
commit
cf00cc72e9
1 changed files with 2 additions and 2 deletions
|
|
@ -241,8 +241,8 @@ nir_phi_builder_value_get_block_def(struct nir_phi_builder_value *val,
|
|||
static int
|
||||
compare_blocks(const void *_a, const void *_b)
|
||||
{
|
||||
nir_block * const * a = _a;
|
||||
nir_block * const * b = _b;
|
||||
const nir_block * const * a = _a;
|
||||
const nir_block * const * b = _b;
|
||||
|
||||
return (*a)->index - (*b)->index;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue