mirror of
https://github.com/holub/mame
synced 2025-07-02 08:39:21 +03:00
updated comments/TODOs about invalid vptr warnings (nw)
This commit is contained in:
parent
b93487def4
commit
eb80c98fcd
@ -20,7 +20,7 @@ ifeq ($(findstring 3.5,$(TEST_CLANG)),3.5)
|
|||||||
CCOMFLAGS += -Wno-inline-new-delete
|
CCOMFLAGS += -Wno-inline-new-delete
|
||||||
# caused by src/mess/drivers/x07.c, src/osd/sdl/window.c, src/emu/sound/disc_mth.inc
|
# caused by src/mess/drivers/x07.c, src/osd/sdl/window.c, src/emu/sound/disc_mth.inc
|
||||||
CCOMFLAGS += -Wno-absolute-value
|
CCOMFLAGS += -Wno-absolute-value
|
||||||
# caused by src/emu/bus/isa/s3virge.c, src/emu/cpu/drcfe.c, src/emu/video/pc_vga.c
|
# caused by src/emu/bus/isa/s3virge.c, src/emu/bus/isa/trident.c, src/emu/video/pc_vga.c
|
||||||
CCOMFLAGS +=-Wno-dynamic-class-memaccess
|
CCOMFLAGS +=-Wno-dynamic-class-memaccess
|
||||||
# these were disabled because of bugs in older clang versions
|
# these were disabled because of bugs in older clang versions
|
||||||
CCOMFLAGS += -Wformat-security
|
CCOMFLAGS += -Wformat-security
|
||||||
|
@ -45,6 +45,7 @@ s3virgedx_rev1_vga_device::s3virgedx_rev1_vga_device(const machine_config &mconf
|
|||||||
|
|
||||||
void s3virge_vga_device::device_start()
|
void s3virge_vga_device::device_start()
|
||||||
{
|
{
|
||||||
|
// FIXME: this kills the vptr of vga.memory
|
||||||
memset(&vga, 0, sizeof(vga));
|
memset(&vga, 0, sizeof(vga));
|
||||||
memset(&svga, 0, sizeof(svga));
|
memset(&svga, 0, sizeof(svga));
|
||||||
|
|
||||||
|
@ -155,6 +155,7 @@ void trident_vga_device::WRITEPIXEL(INT16 x,INT16 y, UINT32 data)
|
|||||||
|
|
||||||
void trident_vga_device::device_start()
|
void trident_vga_device::device_start()
|
||||||
{
|
{
|
||||||
|
// FIXME: this kill the vga.memory vptr
|
||||||
memset(&vga, 0, sizeof(vga));
|
memset(&vga, 0, sizeof(vga));
|
||||||
memset(&svga, 0, sizeof(svga));
|
memset(&svga, 0, sizeof(svga));
|
||||||
|
|
||||||
|
@ -208,6 +208,7 @@ TIMER_CALLBACK_MEMBER(vga_device::vblank_timer_cb)
|
|||||||
|
|
||||||
void vga_device::device_start()
|
void vga_device::device_start()
|
||||||
{
|
{
|
||||||
|
// FIXME: this kills the vga.memory vptr
|
||||||
memset(&vga, 0, sizeof(vga));
|
memset(&vga, 0, sizeof(vga));
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user