mirror of
https://github.com/holub/mame
synced 2025-05-25 15:25:33 +03:00
One more Clang warning fix.
Anyone who's ever been confused by the meaning of a given GCC or MSVC error diagnostic will enjoy this (it's color-coded in real life for added "wow"): src/emu/memory.c:2148:5: error: comparison of distinct pointer types ('genf *' and 'void *') check_entry_handler(write); ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/emu/memory.c:2052:63: note: instantiated from: if (entry->handler.generic != NULL && entry->handler.generic != SMH_RAM) \ ~~~~~~~~~~~~~~~~~~~~~~ ^
This commit is contained in:
parent
41091eeda8
commit
8bc10109ca
@ -2049,7 +2049,7 @@ static void memory_exit(running_machine *machine)
|
||||
|
||||
|
||||
#define check_entry_handler(handler) do { \
|
||||
if (entry->handler.generic != NULL && entry->handler.generic != SMH_RAM) \
|
||||
if (entry->handler.generic != NULL && entry->handler.generic != (genf *)SMH_RAM) \
|
||||
fatalerror("%s: %s AM_RANGE(0x%x, 0x%x) %s handler already set!\n", driver->source_file, driver->name, entry->addrstart, entry->addrend, #handler); \
|
||||
} while (0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user