Parcourir la source

r600g: Silence uninitialized variable warnings.

tags/snb-magic
Vinson Lee il y a 15 ans
Parent
révision
d674ee2a4d
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4
    4
      src/gallium/drivers/r600/r600_asm.c

+ 4
- 4
src/gallium/drivers/r600/r600_asm.c Voir le fichier

@@ -879,15 +879,15 @@ int r600_bc_build(struct r600_bc *bc)

void r600_bc_clear(struct r600_bc *bc)
{
struct r600_bc_cf *cf, *next_cf;
struct r600_bc_cf *cf = NULL, *next_cf;

free(bc->bytecode);
bc->bytecode = NULL;

LIST_FOR_EACH_ENTRY_SAFE(cf, next_cf, &bc->cf, list) {
struct r600_bc_alu *alu, *next_alu;
struct r600_bc_tex *tex, *next_tex;
struct r600_bc_tex *vtx, *next_vtx;
struct r600_bc_alu *alu = NULL, *next_alu;
struct r600_bc_tex *tex = NULL, *next_tex;
struct r600_bc_tex *vtx = NULL, *next_vtx;

LIST_FOR_EACH_ENTRY_SAFE(alu, next_alu, &cf->alu, list) {
free(alu);

Chargement…
Annuler
Enregistrer