[Mesa-dev] [PATCH 2/4] nir: Silence unused "options" warning in algebraic passes.

2016-04-07 Thread Kenneth Graunke
Some passes may not refer to options->..., at which point the compiler will warn about an unused variable. Just cast to void unconditionally to shut it up. Signed-off-by: Kenneth Graunke --- src/compiler/nir/nir_algebraic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/nir/n

Re: [Mesa-dev] [PATCH 2/4] nir: Silence unused "options" warning in algebraic passes.

2016-04-08 Thread Eduardo Lima Mitev
On 04/08/2016 01:35 AM, Kenneth Graunke wrote: Some passes may not refer to options->..., at which point the compiler will warn about an unused variable. Just cast to void unconditionally to shut it up. Signed-off-by: Kenneth Graunke --- src/compiler/nir/nir_algebraic.py | 1 + 1 file chang

Re: [Mesa-dev] [PATCH 2/4] nir: Silence unused "options" warning in algebraic passes.

2016-04-08 Thread Dylan Baker
Quoting Eduardo Lima Mitev (2016-04-08 08:26:22) > On 04/08/2016 01:35 AM, Kenneth Graunke wrote: > > Some passes may not refer to options->..., at which point the compiler > > will warn about an unused variable. Just cast to void unconditionally > > to shut it up. > > > > Signed-off-by: Kenneth G

Re: [Mesa-dev] [PATCH 2/4] nir: Silence unused "options" warning in algebraic passes.

2016-04-08 Thread Kenneth Graunke
On Friday, April 8, 2016 11:18:46 AM PDT Dylan Baker wrote: > Quoting Eduardo Lima Mitev (2016-04-08 08:26:22) > > On 04/08/2016 01:35 AM, Kenneth Graunke wrote: > > > Some passes may not refer to options->..., at which point the compiler > > > will warn about an unused variable. Just cast to voi

Re: [Mesa-dev] [PATCH 2/4] nir: Silence unused "options" warning in algebraic passes.

2016-04-08 Thread Dylan Baker
Quoting Kenneth Graunke (2016-04-08 11:48:01) > On Friday, April 8, 2016 11:18:46 AM PDT Dylan Baker wrote: > > > Quoting Eduardo Lima Mitev (2016-04-08 08:26:22) > > > On 04/08/2016 01:35 AM, Kenneth Graunke wrote: > > > > Some passes may not refer to options->..., at which point the compiler > >

Re: [Mesa-dev] [PATCH 2/4] nir: Silence unused "options" warning in algebraic passes.

2016-04-08 Thread Dylan Baker
Quoting Dylan Baker (2016-04-08 14:54:38) > Quoting Kenneth Graunke (2016-04-08 11:48:01) > > On Friday, April 8, 2016 11:18:46 AM PDT Dylan Baker wrote: > > > > Quoting Eduardo Lima Mitev (2016-04-08 08:26:22) > > > > On 04/08/2016 01:35 AM, Kenneth Graunke wrote: > > > > > Some passes may not re