nir: silence a couple new compiler warnings
authorBrian Paul <brianp@vmware.com>
Tue, 12 Mar 2019 02:12:15 +0000 (20:12 -0600)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 12 Mar 2019 03:34:51 +0000 (14:34 +1100)
commit02c2863df514cf24ec6464f6daa9f299bcf542e1
treef04db97aed5d1293dd2f9cba6a84e256d2b8bfc3
parent587ad37e72d2a343b82a0c62c41c869d6825e14d
nir: silence a couple new compiler warnings

[33/630] Compiling C object 'src/compiler/nir/nir@sta/nir_loop_analyze.c.o'.
../src/compiler/nir/nir_loop_analyze.c: In function ‘try_find_trip_count_vars_in_iand’:
../src/compiler/nir/nir_loop_analyze.c:846:29: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    if (*ind == NULL || *ind && (*ind)->type != basic_induction ||
                             ^
[85/630] Compiling C object 'src/compiler/nir/nir@sta/nir_opt_loop_unroll.c.o'.
../src/compiler/nir/nir_opt_loop_unroll.c: In function ‘complex_unroll_single_terminator’:
../src/compiler/nir/nir_opt_loop_unroll.c:494:17: warning: unused variable ‘unroll_loc’ [-Wunused-variable]
    nir_cf_node *unroll_loc =
                 ^
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir_loop_analyze.c
src/compiler/nir/nir_opt_loop_unroll.c