Fix 2 more warnings

This commit is contained in:
allkern
2024-08-05 10:07:17 -03:00
parent 5916b49c67
commit 19f73abc04
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ const uint32_t g_psx_bus_region_mask_table[] = {
0x7fffffff, 0x1fffffff, 0xffffffff, 0xffffffff
};
psx_bus_t* psx_bus_create() {
psx_bus_t* psx_bus_create(void) {
return (psx_bus_t*)malloc(sizeof(psx_bus_t));
}
-4
View File
@@ -1554,10 +1554,6 @@ static inline uint32_t gte_divide(psx_cpu_t* cpu, uint16_t n, uint16_t d) {
return MIN(0x1ffff, res);
}
static inline void psx_gte_i_invalid(psx_cpu_t* cpu) {
log_fatal("invalid: Unimplemented GTE instruction %02x, %02x", cpu->opcode & 0x3f, cpu->opcode >> 25);
}
#define I64(v) ((int64_t)v)
#define R_TRX cpu->cop2_cr.tr.x
#define R_TRY cpu->cop2_cr.tr.y