nv30: silence some warnings
authorPatrice Mandin <pmandin@caramail.com>
Tue, 11 Mar 2008 18:22:02 +0000 (19:22 +0100)
committerPatrice Mandin <pmandin@caramail.com>
Tue, 11 Mar 2008 18:58:16 +0000 (19:58 +0100)
src/gallium/drivers/nv30/nv30_fragprog.c
src/gallium/drivers/nv30/nv30_state.c
src/gallium/drivers/nv30/nv30_vbo.c

index 09ad555c324505af9607e4792589ef5e6a83c534..0a2ba04f958fd1d2512c176afbc6b09311ad3c24 100644 (file)
@@ -378,7 +378,7 @@ nv30_fragprog_parse_instruction(struct nv30_fpc *fpc,
 {
        const struct nv30_sreg none = nv30_sr(NV30SR_NONE, 0);
        struct nv30_sreg src[3], dst, tmp;
-       int mask, sat, unit;
+       int mask, sat, unit = 0;
        int ai = -1, ci = -1;
        int i;
 
index aa3fe7837e4446601f9868ea2d458a3707f40dde..319d53fccac7728965a2d6be2adc4cb2c013e5d0 100644 (file)
@@ -538,7 +538,7 @@ nv30_set_framebuffer_state(struct pipe_context *pipe,
 {
        struct nv30_context *nv30 = nv30_context(pipe);
        struct pipe_surface *rt[4], *zeta = NULL;
-       uint32_t rt_enable, rt_format, w, h;
+       uint32_t rt_enable, rt_format, w = 0, h = 0;
        int i, colour_format = 0, zeta_format = 0;
 
        rt_enable = 0;
index 9e00cdac3fbd519e860ef05ffc5a0e448f7b950a..a62462f7bc5a77dc91315580c93634e66035e766 100644 (file)
@@ -102,7 +102,7 @@ nv30_vbo_arrays_update(struct nv30_context *nv30)
 {
        struct nv30_vertex_program *vp = nv30->vertprog.active;
        uint32_t inputs, vtxfmt[16];
-       int hw, num_hw;
+       int hw, num_hw = 0;
 
        nv30->vb_enable = 0;