draw: silence uninitialized variable warning

v2: move initialization of llvm_gs to declaration.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
Brian Paul 2014-12-19 09:37:33 -07:00
parent 04e35cc4aa
commit d294365d06
1 changed files with 1 additions and 1 deletions

View File

@ -715,7 +715,7 @@ draw_create_geometry_shader(struct draw_context *draw,
{
#ifdef HAVE_LLVM
boolean use_llvm = draw->llvm != NULL;
struct llvm_geometry_shader *llvm_gs;
struct llvm_geometry_shader *llvm_gs = NULL;
#endif
struct draw_geometry_shader *gs;
unsigned i;