llvmpipe: Silence compiler warnings.
authorVinson Lee <vlee@vmware.com>
Tue, 29 Dec 2009 02:05:30 +0000 (18:05 -0800)
committerVinson Lee <vlee@vmware.com>
Tue, 29 Dec 2009 02:05:30 +0000 (18:05 -0800)
src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c
src/gallium/drivers/llvmpipe/lp_tex_cache.h

index 52554b950c89c7760c3cff5a7295ddbf30618285..0dea2cd4c86da00d46a7f8bf445d45d2238d38da 100644 (file)
@@ -446,7 +446,12 @@ emit_instruction(
 {
    unsigned chan_index;
    LLVMValueRef src0, src1, src2;
-   LLVMValueRef tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
+   LLVMValueRef tmp0, tmp1, tmp2;
+   LLVMValueRef tmp3 = NULL;
+   LLVMValueRef tmp4 = NULL;
+   LLVMValueRef tmp5 = NULL;
+   LLVMValueRef tmp6 = NULL;
+   LLVMValueRef tmp7 = NULL;
    LLVMValueRef res;
    LLVMValueRef dst0[NUM_CHANNELS];
 
index 9fa6c3681253632d4e9947824ceab724b2905614..05fded78e169dabfa484594a7bb8b878c1003d0f 100644 (file)
@@ -115,7 +115,7 @@ extern const struct llvmpipe_cached_tex_tile *
 lp_find_cached_tex_tile(struct llvmpipe_tex_tile_cache *tc,
                         union tex_tile_address addr );
 
-static INLINE const union tex_tile_address
+static INLINE union tex_tile_address
 tex_tile_address( unsigned x,
                   unsigned y,
                   unsigned z,