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:
R. Belmont 2009-12-02 03:51:45 +00:00
parent 41091eeda8
commit 8bc10109ca

View File

@ -2049,7 +2049,7 @@ static void memory_exit(running_machine *machine)
#define check_entry_handler(handler) do { \ #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); \ 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) } while (0)