gallivm: init vars to silence gcc warnings
authorBrian Paul <brianp@vmware.com>
Wed, 5 Apr 2017 19:53:41 +0000 (13:53 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Apr 2017 19:46:44 +0000 (13:46 -0600)
Silence warnings about using possibly uninitialized values.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_sample.c

index a4b3a7b834803594ec2f784bd4290d01333371e1..a1dc61d40f62bd4b2d910491e05a31a6648a0772 100644 (file)
@@ -1412,8 +1412,8 @@ lp_build_unnormalized_coords(struct lp_build_sample_context *bld,
 {
    const unsigned dims = bld->dims;
    LLVMValueRef width;
-   LLVMValueRef height;
-   LLVMValueRef depth;
+   LLVMValueRef height = NULL;
+   LLVMValueRef depth = NULL;
 
    lp_build_extract_image_sizes(bld,
                                 &bld->float_size_bld,