<div dir="ltr"><div>Sure, fine by me<br><br></div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 7, 2014 at 3:11 PM, Vinson Lee <span dir="ltr"><<a href="mailto:vlee@freedesktop.org" target="_blank">vlee@freedesktop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Fixes GCC maybe-uninitialized warning.<br>
<br>
formats.c:560:11: warning: 'gtype' may be used uninitialized in this function [-Wmaybe-uninitialized]<br>
   snprintf(fs_src, sizeof(ms_compare_fs_source),<br>
           ^<br>
<br>
Signed-off-by: Vinson Lee <<a href="mailto:vlee@freedesktop.org">vlee@freedesktop.org</a>><br>
---<br>
 tests/spec/arb_copy_image/formats.c | 1 +<br>
 1 file changed, 1 insertion(+)<br>
<br>
diff --git a/tests/spec/arb_copy_image/formats.c b/tests/spec/arb_copy_image/formats.c<br>
index 92715ba..8a5faa7 100644<br>
--- a/tests/spec/arb_copy_image/formats.c<br>
+++ b/tests/spec/arb_copy_image/formats.c<br>
@@ -551,6 +551,7 @@ load_compare_program(struct texture_format *format)<br>
                        gtype = "i";<br>
                } else {<br>
                        assert(!"Invalid comparison fucntion");<br>
+                       gtype = "";<br>
                }<br>
<br>
                /* The generated source will be shorter because we replace<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.9.3<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/piglit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</font></span></blockquote></div><br></div>