[Mesa-dev] [PATCH] r600_asm.c: Silence "control reaches end of non-void function" warnings.
Johannes Obermayr
johannesobermayr at gmx.de
Sun Jan 22 14:53:17 PST 2012
---
src/gallium/drivers/r600/r600_asm.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index a888704..b981cf1 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -483,8 +483,8 @@ static int is_alu_vec_unit_inst(struct r600_bytecode *bc, struct r600_bytecode_a
return alu->is_op3 ? RANGE(0x04, 0x11) : RANGE(0xA0, 0xE2);
case CAYMAN:
assert(0);
- return 0;
}
+ return 0;
}
/* alu instructions that can only execute on the trans unit */
@@ -500,8 +500,8 @@ static int is_alu_trans_unit_inst(struct r600_bytecode *bc, struct r600_bytecode
return alu->is_op3 ? RANGE(0x1F, 0x1F) : RANGE(0x81, 0x9C);
case CAYMAN:
assert(0);
- return 0;
}
+ return 0;
}
#undef RANGE
--
1.7.7
More information about the mesa-dev
mailing list