aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-01-26 13:18:37 +0000
committerEmil Velikov <[email protected]>2017-01-27 17:56:56 +0000
commitcf00cc72e923f9e4aba35738317d812d5e32318a (patch)
treeb34941883d569e88846bf930a2cb4de67b431d7f /src/compiler/nir
parenta2dea3b654ed3e3c3d5e9a470027441f266f892e (diff)
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 <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_phi_builder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_phi_builder.c b/src/compiler/nir/nir_phi_builder.c
index acfc771da2f..883884bb7f5 100644
--- a/src/compiler/nir/nir_phi_builder.c
+++ b/src/compiler/nir/nir_phi_builder.c
@@ -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;
}