diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-01-08 09:31:29 -0800 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-01-08 12:29:56 -0800 |
commit | baabfb1959c84e05a5fc6e7dd6150ad7e81f7f74 (patch) | |
tree | 9edcb5127278155c0cc02f26d9f2219ea19d0e38 /include/d3dadapter/drm.h | |
parent | 3cb65cf8aa090c39b520ae26fa32097ad18fd067 (diff) |
nir: fix warning in nir_lower_io.c
Initialize the variable with NULL. Fixes the following
In file included from ../src/compiler/nir/nir_lower_io.c:34:
../src/compiler/nir/nir_lower_io.c: In function ‘nir_lower_explicit_io’:
../src/compiler/nir/nir.h:668:11: warning: ‘addr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return src;
^~~
../src/compiler/nir/nir_lower_io.c:735:17: note: ‘addr’ was declared here
nir_ssa_def *addr;
^~~~
v2: Avoid using a 'default' case so we get help from the compiler when
new deref types are added. (Lionel)
Acked-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'include/d3dadapter/drm.h')
0 files changed, 0 insertions, 0 deletions