diff options
author | Vinson Lee <vlee@freedesktop.org> | 2014-11-07 15:08:28 -0800 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2014-11-07 20:57:04 -0800 |
commit | c4916bbaa506793dd0cbf2b3baf7cef1db7f2912 (patch) | |
tree | f0b4f1f635c4189d1ee49ce4e1658b0d78978fe2 /tests | |
parent | 4bea0f94d8fdf9463cf24f446617251d53bbc1d4 (diff) |
arb_copy_image-formats: Initialize variable.
Fixes GCC maybe-uninitialized warning.
formats.c:560:11: warning: 'gtype' may be used uninitialized in this function [-Wmaybe-uninitialized]
snprintf(fs_src, sizeof(ms_compare_fs_source),
^
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/spec/arb_copy_image/formats.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/spec/arb_copy_image/formats.c b/tests/spec/arb_copy_image/formats.c index 92715ba57..8a5faa7ce 100644 --- a/tests/spec/arb_copy_image/formats.c +++ b/tests/spec/arb_copy_image/formats.c @@ -551,6 +551,7 @@ load_compare_program(struct texture_format *format) gtype = "i"; } else { assert(!"Invalid comparison fucntion"); + gtype = ""; } /* The generated source will be shorter because we replace |