nouveau: Fix a couple of "foo may be used uninitialized' compiler warnings
authorHans de Goede <hdegoede@redhat.com>
Wed, 29 Jun 2016 12:23:23 +0000 (14:23 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sat, 2 Jul 2016 10:21:28 +0000 (12:21 +0200)
commit110ef733dcd3fd306c513a2546b6e0a7d3179263
tree9d5bcc620689b4d1087cdc174e9f2f9505586d6d
parent1f3c8f36641d785db201b97bd2e5fdfcbac4645d
nouveau: Fix a couple of "foo may be used uninitialized' compiler warnings

These are all new false positives with gcc6.

In nouveau_compiler.c: gcc6 no longer assumes that passing a pointer
to a variable into a function initialises that variable.

In nv50_ir_from_tgsi.cpp op and mode are not set if there are 0
enabled dst channels, this never happens, but gcc cannot know this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
src/gallium/drivers/nouveau/nouveau_compiler.c