Skip to content

Commit

Permalink
Fix 2 more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
allkern committed Aug 5, 2024
1 parent 5916b49 commit 19f73ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion psx/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down
4 changes: 0 additions & 4 deletions psx/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19f73ab

Please sign in to comment.