draw: silence uninitialized variable warning
authorBrian Paul <brianp@vmware.com>
Fri, 19 Dec 2014 16:37:33 +0000 (09:37 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 5 Jan 2015 20:50:54 +0000 (13:50 -0700)
v2: move initialization of llvm_gs to declaration.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_gs.c

index 40f7ed352d97f4a98beb349218abb2bc97591fd0..6375d41295c24c88b1bce42c257b47f6485e8e5a 100644 (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;