diff --git a/makefile b/makefile index 6f12ff2ae58..51921ab9d7f 100644 --- a/makefile +++ b/makefile @@ -559,7 +559,8 @@ CCOMFLAGS += \ -Wno-constant-logical-operand \ -Wno-format-security \ -Wno-shift-count-overflow \ - -Wno-self-assign-field + -Wno-self-assign-field \ + -Wno-inline-new-delete endif ifdef SANITIZE diff --git a/src/lib/lib.mak b/src/lib/lib.mak index 3882245484b..967c3ea546c 100644 --- a/src/lib/lib.mak +++ b/src/lib/lib.mak @@ -343,6 +343,9 @@ ARCHFLAGS = -DWORDS_BIGENDIAN=0 endif FLACOPTS=-DFLAC__NO_ASM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H=0 -DFLAC__HAS_OGG=0 -Wno-unused-function $(ARCHFLAGS) -O0 +ifneq (,$(findstring clang,$(CC))) + FLACOPTS += -Wno-unused-const-variable +endif LIBFLACOBJS = \ $(LIBOBJ)/libflac/bitmath.o \ diff --git a/src/mess/drivers/a7000.c b/src/mess/drivers/a7000.c index 47a41b5e68c..7d3f92c79af 100644 --- a/src/mess/drivers/a7000.c +++ b/src/mess/drivers/a7000.c @@ -93,6 +93,7 @@ static const char *const vidc20_regnames[] = "Data Control" // F }; +#if 0 static const char *const vidc20_horz_regnames[] = { "Horizontal Cycle", // 0x80 HCR @@ -112,6 +113,7 @@ static const char *const vidc20_horz_regnames[] = "Horizontal ", // 0x8e "Horizontal " // 0x8f }; +#endif #define HCR 0 #define HSWR 1 @@ -122,6 +124,7 @@ static const char *const vidc20_horz_regnames[] = #define HCSR 6 #define HIR 7 +#if 0 static const char *const vidc20_vert_regnames[] = { "Vertical Cycle", // 0x90 VCR @@ -141,6 +144,7 @@ static const char *const vidc20_vert_regnames[] = "Horizontal ", // 0x9e "Horizontal " // 0x9f }; +#endif #define VCR 0 #define VSWR 1 diff --git a/src/mess/drivers/amiga.c b/src/mess/drivers/amiga.c index f962c6444eb..d8f03086723 100644 --- a/src/mess/drivers/amiga.c +++ b/src/mess/drivers/amiga.c @@ -590,7 +590,7 @@ READ8_MEMBER(a1200_state::a1200_cia_0_portA_r) return ret; } - +#if 0 static const legacy_mos6526_interface a1200_cia_0_intf = { DEVCB_DRIVER_LINE_MEMBER(amiga_state, amiga_cia_0_irq), /* irq_func */ @@ -614,6 +614,7 @@ static const legacy_mos6526_interface a1200_cia_1_intf = DEVCB_NULL, DEVCB_DEVICE_MEMBER("fdc", amiga_fdc, ciaaprb_w) /* port B */ }; +#endif static SLOT_INTERFACE_START( amiga_floppies ) diff --git a/src/mess/drivers/amstr_pc.c b/src/mess/drivers/amstr_pc.c index 9928a9c9661..caa7f428311 100644 --- a/src/mess/drivers/amstr_pc.c +++ b/src/mess/drivers/amstr_pc.c @@ -330,6 +330,7 @@ MACHINE_CONFIG_END +#if 0 static const gfx_layout pc1512_charlayout = { 8, 8, /* 8 x 8 characters */ @@ -346,6 +347,7 @@ static const gfx_layout pc1512_charlayout = static GFXDECODE_START( pc1512 ) GFXDECODE_ENTRY( "gfx1", 0x0000, pc1512_charlayout, 3, 1 ) GFXDECODE_END +#endif static MACHINE_CONFIG_START( ppc512, amstrad_pc_state ) /* basic machine hardware */ diff --git a/src/mess/drivers/amstrad.c b/src/mess/drivers/amstrad.c index b7881faefcf..6f9d7b8fd29 100644 --- a/src/mess/drivers/amstrad.c +++ b/src/mess/drivers/amstrad.c @@ -777,6 +777,7 @@ static const ay8910_interface ay8912_interface = DEVCB_NULL /* portB write */ }; +#if 0 static const gfx_layout asic_sprite_layout = { @@ -792,6 +793,7 @@ static const gfx_layout asic_sprite_layout = static GFXDECODE_START( asic_sprite ) GFXDECODE_ENTRY( "user1", 0, asic_sprite_layout, 32, 1 ) GFXDECODE_END +#endif diff --git a/src/mess/drivers/apexc.c b/src/mess/drivers/apexc.c index 41bbf800708..7a09a2ded6f 100644 --- a/src/mess/drivers/apexc.c +++ b/src/mess/drivers/apexc.c @@ -518,10 +518,12 @@ static const rgb_t apexc_palette[] = rgb_t(50, 0, 0) }; +#if 0 static const unsigned short apexc_colortable[] = { 0, 1 }; +#endif #define APEXC_PALETTE_SIZE ARRAY_LENGTH(apexc_palette) #define APEXC_COLORTABLE_SIZE sizeof(apexc_colortable)/2 @@ -556,7 +558,7 @@ static const rectangle teletyper_scroll_clear_window( teletyper_window_offset_x, teletyper_window_offset_x+teletyper_window_width-1, /* min_x, max_x */ teletyper_window_offset_y+teletyper_window_height-teletyper_scroll_step, teletyper_window_offset_y+teletyper_window_height-1 /* min_y, max_y */ ); -static const int var_teletyper_scroll_step = - teletyper_scroll_step; +//static const int var_teletyper_scroll_step = - teletyper_scroll_step; void apexc_state::palette_init() { diff --git a/src/mess/drivers/apf.c b/src/mess/drivers/apf.c index afaf8831b6b..1fd5ac33a93 100644 --- a/src/mess/drivers/apf.c +++ b/src/mess/drivers/apf.c @@ -533,6 +533,7 @@ static const cassette_interface apf_cassette_interface = NULL }; +#if 0 static LEGACY_FLOPPY_OPTIONS_START(apfimag) LEGACY_FLOPPY_OPTION(apfimag, "apd", "APF disk image", basicdsk_identify_default, basicdsk_construct_default, NULL, HEADS([1]) @@ -554,6 +555,7 @@ static const floppy_interface apfimag_floppy_interface = NULL, NULL }; +#endif static const mc6847_interface apf_mc6847_intf = { diff --git a/src/mess/drivers/apple2.c b/src/mess/drivers/apple2.c index c4d287d669c..80cbf6f887c 100644 --- a/src/mess/drivers/apple2.c +++ b/src/mess/drivers/apple2.c @@ -1525,6 +1525,7 @@ ROM_START(las128ex) ROM_LOAD( "342-0132-c.e12", 0x000, 0x800, BAD_DUMP CRC(e47045f4) SHA1(12a2e718f5f4acd69b6c33a45a4a940b1440a481) ) // need to dump real laser rom ROM_END +#if 0 ROM_START(las128e2) ROM_REGION(0x2000,"gfx1",0) ROM_LOAD ( "341-0265-a.chr", 0x0000, 0x1000, BAD_DUMP CRC(2651014d) SHA1(b2b5d87f52693817fc747df087a4aa1ddcdb1f10)) // need to dump real laser rom @@ -1536,6 +1537,7 @@ ROM_START(las128e2) ROM_REGION( 0x800, "keyboard", ROMREGION_ERASE00 ) ROM_LOAD( "342-0132-c.e12", 0x000, 0x800, BAD_DUMP CRC(e47045f4) SHA1(12a2e718f5f4acd69b6c33a45a4a940b1440a481) ) // need to dump real laser rom ROM_END +#endif ROM_START(apple2cp) ROM_REGION(0x2000,"gfx1",0) @@ -1631,6 +1633,7 @@ COMP( 1989, prav8c, apple2c, 0, apple2c, apple2e, driver_device, COMP( 1983, las3000, apple2, 0, apple2p, apple2p, driver_device, 0, "Video Technology", "Laser 3000", GAME_NOT_WORKING ) COMP( 1987, laser128, apple2c, 0, laser128, apple2e, driver_device, 0, "Video Technology", "Laser 128 (version 4.2)", GAME_NOT_WORKING ) COMP( 1988, las128ex, apple2c, 0, laser128, apple2e, driver_device, 0, "Video Technology", "Laser 128ex (version 4.5)", GAME_NOT_WORKING ) +// TODO: add las128e2 COMP( 1985, apple2c0, apple2c, 0, apple2c_iwm, apple2e, driver_device, 0, "Apple Computer", "Apple //c (UniDisk 3.5)", GAME_SUPPORTS_SAVE ) COMP( 1986, apple2c3, apple2c, 0, apple2c_iwm, apple2e, driver_device, 0, "Apple Computer", "Apple //c (Original Memory Expansion)", GAME_SUPPORTS_SAVE ) COMP( 1986, apple2c4, apple2c, 0, apple2c_iwm, apple2e, driver_device, 0, "Apple Computer", "Apple //c (rev 4)", GAME_NOT_WORKING ) diff --git a/src/mess/drivers/atarist.c b/src/mess/drivers/atarist.c index 003c4d9bfeb..ae7865e3541 100644 --- a/src/mess/drivers/atarist.c +++ b/src/mess/drivers/atarist.c @@ -1823,6 +1823,7 @@ WRITE8_MEMBER( stbook_state::psg_pa_w ) m_fdc->dden_w(BIT(data, 7)); } +#if 0 static const ay8910_interface stbook_psg_intf = { AY8910_SINGLE_OUTPUT, @@ -1832,6 +1833,7 @@ static const ay8910_interface stbook_psg_intf = DEVCB_DRIVER_MEMBER(stbook_state, psg_pa_w), DEVCB_DEVICE_MEMBER("cent_data_out", output_latch_device, write), }; +#endif //------------------------------------------------- @@ -1860,6 +1862,7 @@ static ACIA6850_INTERFACE( acia_ikbd_intf ) }; +#if 0 //------------------------------------------------- // ACIA6850_INTERFACE( stbook_acia_ikbd_intf ) //------------------------------------------------- @@ -1872,6 +1875,7 @@ static ACIA6850_INTERFACE( stbook_acia_ikbd_intf ) DEVCB_NULL, DEVCB_DRIVER_LINE_MEMBER(st_state, acia_ikbd_irq_w) }; +#endif //------------------------------------------------- @@ -1945,6 +1949,7 @@ static MC68901_INTERFACE( atariste_mfp_intf ) // TODO power alarms (i7_w) +#if 0 static MC68901_INTERFACE( stbook_mfp_intf ) { Y1, /* timer clock */ @@ -1958,6 +1963,7 @@ static MC68901_INTERFACE( stbook_mfp_intf ) DEVCB_DRIVER_LINE_MEMBER(st_state, mfp_tdo_w), /* TDO */ DEVCB_DEVICE_LINE_MEMBER(RS232_TAG, rs232_port_device, write_txd) }; +#endif void st_state::fdc_intrq_w(bool state) { @@ -2857,6 +2863,7 @@ ROM_END // ROM( stacy ) //------------------------------------------------- +#if 0 ROM_START( stacy ) ROM_REGION16_BE( 0x30000, M68000_TAG, 0 ) ROM_SYSTEM_BIOS( 0, "tos104", "TOS 1.04 (Rainbow TOS)" ) @@ -2868,6 +2875,7 @@ ROM_START( stacy ) ROM_REGION( 0x1000, HD6301V1_TAG, 0 ) ROM_LOAD( "keyboard.u1", 0x0000, 0x1000, CRC(0296915d) SHA1(1102f20d38f333234041c13687d82528b7cde2e1) ) ROM_END +#endif //------------------------------------------------- @@ -3179,6 +3187,7 @@ ROM_END // ROM( stbook ) //------------------------------------------------- +#if 0 ROM_START( stbook ) ROM_REGION16_BE( 0x40000, M68000_TAG, 0 ) ROM_SYSTEM_BIOS( 0, "tos208", "TOS 2.08" ) @@ -3190,12 +3199,14 @@ ROM_START( stbook ) ROM_REGION( 0x1000, COP888_TAG, 0 ) ROM_LOAD( "cop888c0.u703", 0x0000, 0x1000, NO_DUMP ) ROM_END +#endif //------------------------------------------------- // ROM( stpad ) //------------------------------------------------- +#if 0 ROM_START( stpad ) ROM_REGION16_BE( 0x40000, M68000_TAG, 0 ) ROM_SYSTEM_BIOS( 0, "tos205", "TOS 2.05" ) @@ -3204,6 +3215,7 @@ ROM_START( stpad ) ROM_REGION( 0x20000, "cart", ROMREGION_ERASE00 ) ROM_CART_LOAD( "cart", 0x00000, 0x20000, ROM_MIRROR | ROM_OPTIONAL ) ROM_END +#endif //------------------------------------------------- @@ -3300,6 +3312,7 @@ ROM_END // ROM( fx1 ) //------------------------------------------------- +#if 0 ROM_START( fx1 ) ROM_REGION16_BE( 0x40000, M68000_TAG, 0 ) ROM_SYSTEM_BIOS( 0, "tos207", "TOS 2.07" ) @@ -3311,6 +3324,7 @@ ROM_START( fx1 ) ROM_REGION( 0x1000, HD6301V1_TAG, 0 ) ROM_LOAD( "keyboard.u1", 0x0000, 0x1000, CRC(0296915d) SHA1(1102f20d38f333234041c13687d82528b7cde2e1) ) ROM_END +#endif //------------------------------------------------- diff --git a/src/mess/drivers/bml3.c b/src/mess/drivers/bml3.c index c6b7ceb752f..a49d257e27d 100644 --- a/src/mess/drivers/bml3.c +++ b/src/mess/drivers/bml3.c @@ -959,6 +959,7 @@ TIMER_DEVICE_CALLBACK_MEMBER( bml3_state::bml3_c ) m_cass->output(BIT(m_cass_data[3], 1) ? -1.0 : +1.0); // 1200Hz } +#if 0 static const ay8910_interface ay8910_config = { AY8910_LEGACY_OUTPUT, @@ -968,6 +969,7 @@ static const ay8910_interface ay8910_config = DEVCB_NULL, // write A DEVCB_NULL // write B }; +#endif static const struct bml3bus_interface bml3bus_intf = { diff --git a/src/mess/drivers/busicom.c b/src/mess/drivers/busicom.c index 2e63c92b8f5..2786412bd4b 100644 --- a/src/mess/drivers/busicom.c +++ b/src/mess/drivers/busicom.c @@ -206,7 +206,7 @@ void busicom_state::machine_reset() } -static const char layout_busicom [] = "busicom"; +//static const char layout_busicom [] = "busicom"; static MACHINE_CONFIG_START( busicom, busicom_state ) /* basic machine hardware */ diff --git a/src/mess/drivers/casloopy.c b/src/mess/drivers/casloopy.c index 101d158abdb..1685d134c05 100644 --- a/src/mess/drivers/casloopy.c +++ b/src/mess/drivers/casloopy.c @@ -446,7 +446,7 @@ void casloopy_state::machine_reset() } - +#if 0 static const gfx_layout casloopy_4bpp_layoutROM = { 8,8, @@ -458,6 +458,7 @@ static const gfx_layout casloopy_4bpp_layoutROM = 4*8*8 }; + static const gfx_layout casloopy_8bpp_layoutROM = { 8,8, @@ -468,6 +469,7 @@ static const gfx_layout casloopy_8bpp_layoutROM = { STEP8(0, 8*8) }, 8*8*8 }; +#endif diff --git a/src/mess/drivers/cgc7900.c b/src/mess/drivers/cgc7900.c index 86709a521fa..550ceb4d4d5 100644 --- a/src/mess/drivers/cgc7900.c +++ b/src/mess/drivers/cgc7900.c @@ -60,7 +60,7 @@ #define INT_BINT1 0x4000 #define INT_RS232_RXRDY 0x8000 -static const int INT_LEVEL[] = { 5, 4, 5, 4, 4, 5, 4, 5, 5, 4, 5, 4, 4, 5, 4, 5 }; +//static const int INT_LEVEL[] = { 5, 4, 5, 4, 4, 5, 4, 5, 5, 4, 5, 4, 4, 5, 4, 5 }; /*************************************************************************** READ/WRITE HANDLERS diff --git a/src/mess/drivers/fp1100.c b/src/mess/drivers/fp1100.c index 05ec256abee..cd0b830c468 100644 --- a/src/mess/drivers/fp1100.c +++ b/src/mess/drivers/fp1100.c @@ -299,6 +299,7 @@ void fp1100_state::machine_reset() } } +#if 0 static const gfx_layout fp1100_chars_8x8 = { 8,8, @@ -309,6 +310,7 @@ static const gfx_layout fp1100_chars_8x8 = { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, 8*8 }; +#endif static GFXDECODE_START( fp1100 ) //GFXDECODE_ENTRY( "chargen", 0x0000, fp1100_chars_8x8, 0, 1 ) diff --git a/src/mess/drivers/gmaster.c b/src/mess/drivers/gmaster.c index d14a9e31af2..5f261c53053 100644 --- a/src/mess/drivers/gmaster.c +++ b/src/mess/drivers/gmaster.c @@ -277,12 +277,13 @@ INTERRUPT_GEN_MEMBER(gmaster_state::gmaster_interrupt) m_maincpu->set_input_line(UPD7810_INTFE1, ASSERT_LINE); } - +#if 0 static const UPD7810_CONFIG config = { // TYPE_78C10, // 78c11 in handheld TYPE_7810, // temporarily until 7810 core fixes synchronized NULL }; +#endif static MACHINE_CONFIG_START( gmaster, gmaster_state ) diff --git a/src/mess/drivers/ip20.c b/src/mess/drivers/ip20.c index e2084b6e658..376fbc56db8 100644 --- a/src/mess/drivers/ip20.c +++ b/src/mess/drivers/ip20.c @@ -581,11 +581,13 @@ static INPUT_PORTS_START( ip204415 ) PORT_BIT ( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED ) INPUT_PORTS_END +#if 0 static const mips3_config config = { 32768, /* code cache size */ 32768 /* data cache size */ }; +#endif static MACHINE_CONFIG_START( ip204415, ip20_state ) MCFG_CPU_ADD( "maincpu", R4600BE, 50000000*3 ) diff --git a/src/mess/drivers/ip22.c b/src/mess/drivers/ip22.c index d5c4a690ffa..291f81dd61a 100644 --- a/src/mess/drivers/ip22.c +++ b/src/mess/drivers/ip22.c @@ -1619,11 +1619,13 @@ INTERRUPT_GEN_MEMBER(ip22_state::ip22_vbl) } } +#if 0 static const mips3_config config = { 32768, /* code cache size */ 32768 /* data cache size */ }; +#endif static MACHINE_CONFIG_START( ip225015, ip22_state ) MCFG_CPU_ADD( "maincpu", R5000BE, 50000000*3 ) diff --git a/src/mess/drivers/lynx.c b/src/mess/drivers/lynx.c index e6ad68f7bf2..cf70ecd2c10 100644 --- a/src/mess/drivers/lynx.c +++ b/src/mess/drivers/lynx.c @@ -133,6 +133,7 @@ ROM_START(lynx) ROM_REGION(0x100000, "user1", ROMREGION_ERASEFF) ROM_END +#if 0 ROM_START(lynx2) ROM_REGION(0x200,"maincpu", 0) ROM_LOAD("lynx2.bin", 0, 0x200, NO_DUMP) @@ -141,6 +142,7 @@ ROM_START(lynx2) ROM_REGION(0x100000, "user1", ROMREGION_ERASEFF) ROM_END +#endif QUICKLOAD_LOAD_MEMBER( lynx_state, lynx ) diff --git a/src/mess/drivers/msx.c b/src/mess/drivers/msx.c index 9c92d055a68..5a93105e689 100644 --- a/src/mess/drivers/msx.c +++ b/src/mess/drivers/msx.c @@ -4497,6 +4497,8 @@ MSX_DRIVER_LIST MSX_DRIVER (cx7m) MSX_DRIVER (cx7m128) + MSX_DRIVER (fsa1gt) + MSX_DRIVER (fsa1st) MSX_DRIVER_END diff --git a/src/mess/drivers/mx2178.c b/src/mess/drivers/mx2178.c index ca30c554dc7..18d206a5fca 100644 --- a/src/mess/drivers/mx2178.c +++ b/src/mess/drivers/mx2178.c @@ -94,6 +94,7 @@ static ASCII_KEYBOARD_INTERFACE( keyboard_intf ) // ACIA6850_INTERFACE( acia0_intf ) //------------------------------------------------- +#if 0 static ACIA6850_INTERFACE( acia_intf ) { 614400, @@ -102,6 +103,7 @@ static ACIA6850_INTERFACE( acia_intf ) DEVCB_DEVICE_LINE_MEMBER("rs232", rs232_port_device, write_rts), DEVCB_CPU_INPUT_LINE("maincpu", INPUT_LINE_IRQ0) }; +#endif static MC6845_UPDATE_ROW( update_row ) { diff --git a/src/mess/drivers/mz2000.c b/src/mess/drivers/mz2000.c index f42e38249c8..a15cf098860 100644 --- a/src/mess/drivers/mz2000.c +++ b/src/mess/drivers/mz2000.c @@ -803,6 +803,7 @@ static const wd17xx_interface mz2000_mb8877a_interface = {FLOPPY_0, FLOPPY_1, FLOPPY_2, FLOPPY_3} }; +#if 0 static LEGACY_FLOPPY_OPTIONS_START( mz2000 ) LEGACY_FLOPPY_OPTION( img2d, "2d", "2D disk image", basicdsk_identify_default, basicdsk_construct_default, NULL, HEADS([2]) @@ -811,6 +812,7 @@ static LEGACY_FLOPPY_OPTIONS_START( mz2000 ) SECTOR_LENGTH([256]) FIRST_SECTOR_ID([1])) LEGACY_FLOPPY_OPTIONS_END +#endif static const floppy_interface mz2000_floppy_interface = { diff --git a/src/mess/drivers/mz2500.c b/src/mess/drivers/mz2500.c index d29999d7a22..a8821a6b5c8 100644 --- a/src/mess/drivers/mz2500.c +++ b/src/mess/drivers/mz2500.c @@ -1205,6 +1205,7 @@ static const wd17xx_interface mz2500_mb8877a_interface = {FLOPPY_0, FLOPPY_1, FLOPPY_2, FLOPPY_3} }; +#if 0 static LEGACY_FLOPPY_OPTIONS_START( mz2500 ) LEGACY_FLOPPY_OPTION( img2d, "2d", "2D disk image", basicdsk_identify_default, basicdsk_construct_default, NULL, HEADS([2]) @@ -1213,6 +1214,7 @@ static LEGACY_FLOPPY_OPTIONS_START( mz2500 ) SECTOR_LENGTH([256]) FIRST_SECTOR_ID([1])) LEGACY_FLOPPY_OPTIONS_END +#endif static const floppy_interface mz2500_floppy_interface = { diff --git a/src/mess/drivers/n64.c b/src/mess/drivers/n64.c index ff8d2759b0a..5f3bf95e77e 100644 --- a/src/mess/drivers/n64.c +++ b/src/mess/drivers/n64.c @@ -136,6 +136,7 @@ static INPUT_PORTS_START( n64 ) INPUT_PORTS_END +#if 0 /* ?? */ static const mips3_config config = { @@ -143,6 +144,7 @@ static const mips3_config config = 8192, /* data cache size */ 62500000 /* system clock */ }; +#endif void n64_mess_state::mempak_format(UINT8* pak) { diff --git a/src/mess/drivers/osbexec.c b/src/mess/drivers/osbexec.c index 0340803a153..70704128193 100644 --- a/src/mess/drivers/osbexec.c +++ b/src/mess/drivers/osbexec.c @@ -445,6 +445,7 @@ static Z80SIO_INTERFACE( osbexec_sio_config ) }; +#if 0 static const wd17xx_interface osbexec_wd17xx_interface = { DEVCB_NULL, @@ -452,6 +453,7 @@ static const wd17xx_interface osbexec_wd17xx_interface = DEVCB_NULL, { FLOPPY_0, FLOPPY_1, NULL, NULL} }; +#endif /* diff --git a/src/mess/drivers/osi.c b/src/mess/drivers/osi.c index 6219a77774b..7ef0691178b 100644 --- a/src/mess/drivers/osi.c +++ b/src/mess/drivers/osi.c @@ -238,6 +238,7 @@ static DISCRETE_SOUND_START( osi600_discrete_interface ) DISCRETE_OUTPUT(NODE_04, 100) DISCRETE_SOUND_END +#if 0 static const discrete_dac_r1_ladder osi600c_dac = { 8, // size of ladder @@ -247,6 +248,7 @@ static const discrete_dac_r1_ladder osi600c_dac = 0, // no rGnd CAP_U(33) // C63 }; +#endif static DISCRETE_SOUND_START( osi600c_discrete_interface ) DISCRETE_INPUT_DATA(NODE_01) diff --git a/src/mess/drivers/p8k.c b/src/mess/drivers/p8k.c index e13dc5f3718..a61a8bea357 100644 --- a/src/mess/drivers/p8k.c +++ b/src/mess/drivers/p8k.c @@ -771,6 +771,7 @@ static const z80_daisy_config p8k_16_daisy_chain[] = +#if 0 /* F4 Character Displayer */ static const gfx_layout p8k_charlayout = { @@ -788,6 +789,7 @@ static const gfx_layout p8k_charlayout = static GFXDECODE_START( p8k ) GFXDECODE_ENTRY( "chargen", 0x0000, p8k_charlayout, 0, 1 ) GFXDECODE_END +#endif /*************************************************************************** diff --git a/src/mess/drivers/pc6001.c b/src/mess/drivers/pc6001.c index c7f11aa0e03..53225f5c27e 100644 --- a/src/mess/drivers/pc6001.c +++ b/src/mess/drivers/pc6001.c @@ -2248,6 +2248,7 @@ PALETTE_INIT_MEMBER(pc6001_state,pc6001m2) palette_set_color(machine(), i,mk2_defcolors[i-0x10]); } +#if 0 static const cassette_interface pc6001_cassette_interface = { pc6001_cassette_formats, @@ -2256,6 +2257,7 @@ static const cassette_interface pc6001_cassette_interface = NULL, NULL }; +#endif DEVICE_IMAGE_LOAD_MEMBER( pc6001_state,pc6001_cass ) { diff --git a/src/mess/drivers/pc8801.c b/src/mess/drivers/pc8801.c index 0900f68d42b..4d0ea411bdf 100644 --- a/src/mess/drivers/pc8801.c +++ b/src/mess/drivers/pc8801.c @@ -1470,6 +1470,7 @@ READ8_MEMBER(pc8801_state::pc8801_crtc_status_r) return m_crtc.status; } +#if 0 static const char *const crtc_command[] = { "Reset / Stop Display", // 0 @@ -1481,6 +1482,7 @@ static const char *const crtc_command[] = "Reset Counters", // 6 "Read Status" // 7 }; +#endif WRITE8_MEMBER(pc8801_state::pc88_crtc_cmd_w) { @@ -2257,6 +2259,7 @@ static SLOT_INTERFACE_START( pc88_floppies ) SLOT_INTERFACE( "525hd", FLOPPY_525_HD ) SLOT_INTERFACE_END +#if 0 /* Cassette Configuration */ static const cassette_interface pc88_cassette_interface = @@ -2267,6 +2270,7 @@ static const cassette_interface pc88_cassette_interface = "pc8801_cass", NULL }; +#endif #ifdef USE_PROPER_I8214 void pc8801_state::pc8801_raise_irq(UINT8 irq,UINT8 state) diff --git a/src/mess/drivers/ql.c b/src/mess/drivers/ql.c index 1a586f7eb3d..fde6ad15563 100644 --- a/src/mess/drivers/ql.c +++ b/src/mess/drivers/ql.c @@ -1298,6 +1298,7 @@ ROM_START( tonto ) ROM_END +#if 0 //------------------------------------------------- // ROM( megaopd ) //------------------------------------------------- @@ -1322,6 +1323,7 @@ ROM_START( megaopd ) ROM_LOAD( "rompack-4.rom", 0x018000, 0x008000, NO_DUMP ) ROM_LOAD( "rompack-5.rom", 0x020000, 0x008000, NO_DUMP ) ROM_END +#endif diff --git a/src/mess/drivers/tmc600.c b/src/mess/drivers/tmc600.c index 1825e3c0986..84634f6491d 100644 --- a/src/mess/drivers/tmc600.c +++ b/src/mess/drivers/tmc600.c @@ -302,6 +302,7 @@ MACHINE_CONFIG_END /* ROMs */ +#if 0 ROM_START( tmc600s1 ) ROM_REGION( 0x5000, CDP1802_TAG, 0 ) ROM_LOAD( "sb20", 0x0000, 0x1000, NO_DUMP ) @@ -313,6 +314,7 @@ ROM_START( tmc600s1 ) ROM_REGION( 0x1000, "chargen", 0 ) ROM_LOAD( "chargen", 0x0000, 0x1000, NO_DUMP ) ROM_END +#endif ROM_START( tmc600s2 ) ROM_REGION( 0x5000, CDP1802_TAG, 0 ) diff --git a/src/mess/drivers/ts802.c b/src/mess/drivers/ts802.c index 3a6ed42b28a..711e5bf4500 100644 --- a/src/mess/drivers/ts802.c +++ b/src/mess/drivers/ts802.c @@ -228,6 +228,7 @@ static GENERIC_TERMINAL_INTERFACE( terminal_intf ) DEVCB_DRIVER_MEMBER(ts802_state, kbd_put) }; +#if 0 // not correct static const z80_daisy_config daisy_chain_intf[] = { @@ -237,6 +238,7 @@ static const z80_daisy_config daisy_chain_intf[] = { "z80ctc" }, { NULL } }; +#endif DRIVER_INIT_MEMBER( ts802_state, ts802 ) { diff --git a/src/mess/drivers/vt100.c b/src/mess/drivers/vt100.c index 8ac33079ecc..c3f4b463dca 100644 --- a/src/mess/drivers/vt100.c +++ b/src/mess/drivers/vt100.c @@ -595,6 +595,7 @@ ROM_START( vt100 ) // This is from the schematics at http://www.bitsavers.org/pd ROM_LOAD_OPTIONAL("23-094e2-00.e9", 0x0800, 0x0800, NO_DUMP) // optional ?word processing? alternate character set rom ROM_END +#if 0 ROM_START( vt100wp ) // This is from the schematics at http://www.bitsavers.org/pdf/dec/terminal/vt100/MP00633_VT100_Mar80.pdf // This is the standard vt100 cpu board, with the ?word processing? romset, included in the VT1xx-CE kit? // the vt103 can also use this rom set (-04 and -05 revs have it by default, -05 rev also has the optional alt charset rom by default) @@ -686,6 +687,7 @@ ROM_START( vt103 ) // This is from the schematics at http://www.bitsavers.org/pd ROM_REGION(0x80000, "lsi11cpu", 0) // rom for the LSI-11 cpu board ROM_LOAD_OPTIONAL( "unknown.bin", 0x00000, 0x80000, NO_DUMP) ROM_END +#endif ROM_START( vt105 ) // This is from anecdotal evidence and vt100.net, as the vt105 schematics are not scanned // This is the standard VT100 cpu board with the 'normal' roms (but later rev of eprom 0) populated but with a @@ -702,6 +704,7 @@ ROM_START( vt105 ) // This is from anecdotal evidence and vt100.net, as the vt10 ROM_LOAD_OPTIONAL( "23-094e2-00.e9", 0x0800, 0x0800, NO_DUMP) // optional (comes default with some models) alternate character set rom ROM_END +#if 0 ROM_START( vt110 ) // This is the standard VT100 cpu board with the 'normal' roms (but later rev of eprom 0) populated but with a // DECDataway DPM01 board, which adds 4 or 5 special network-addressable 50ohm? current loop serial lines @@ -766,6 +769,7 @@ ROM_START( vt101 ) // p/n 5414185-01 'unupgradable/low cost' vt101/vt102/vt131 m ROM_LOAD( "23-018e2-00.e3", 0x0000, 0x0800, CRC(6958458b) SHA1(103429674fc01c215bbc2c91962ae99231f8ae53)) ROM_LOAD_OPTIONAL( "23-094e2-00.e4", 0x0800, 0x0800, NO_DUMP) // optional (comes default with some models) alternate character set rom ROM_END +#endif ROM_START( vt102 ) // p/n 5414185-01 'unupgradable/low cost' vt101/vt102/vt131 mainboard // has integrated STP and AVO both populated diff --git a/src/mess/drivers/x1twin.c b/src/mess/drivers/x1twin.c index fcbf46c2222..ea3a29c7f1c 100644 --- a/src/mess/drivers/x1twin.c +++ b/src/mess/drivers/x1twin.c @@ -439,7 +439,6 @@ static const z80sio_interface sio_intf = DEVCB_NULL, /* transmit handler */ DEVCB_NULL /* receive handler */ }; -#endif static Z80DART_INTERFACE( sio_intf ) @@ -464,6 +463,7 @@ static Z80DART_INTERFACE( sio_intf ) DEVCB_NULL, DEVCB_NULL }; +#endif static const z80_daisy_config x1_daisy[] = diff --git a/src/mess/machine/c65.c b/src/mess/machine/c65.c index 91ecfd7ba8f..c5fa2b6609e 100644 --- a/src/mess/machine/c65.c +++ b/src/mess/machine/c65.c @@ -375,6 +375,7 @@ UINT8 cbm_common_cia0_port_b_r( device_t *device, UINT8 output_a ) ***********************************************/ +#if 0 const cassette_interface cbm_cassette_interface = { cbm_cassette_formats, @@ -383,6 +384,7 @@ const cassette_interface cbm_cassette_interface = NULL, NULL }; +#endif /*UINT8 *c65_basic; */ diff --git a/src/mess/machine/micropolis.c b/src/mess/machine/micropolis.c index bf620dfd564..85f0755bec7 100644 --- a/src/mess/machine/micropolis.c +++ b/src/mess/machine/micropolis.c @@ -67,10 +67,12 @@ const micropolis_interface default_micropolis_interface = DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, { FLOPPY_0, FLOPPY_1, FLOPPY_2, FLOPPY_3} }; +#if 0 const micropolis_interface default_micropolis_interface_2_drives = { DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, { FLOPPY_0, FLOPPY_1, NULL, NULL} }; +#endif /*************************************************************************** diff --git a/src/mess/machine/sgi.c b/src/mess/machine/sgi.c index 9791c6f7c50..7a7b7277b7e 100644 --- a/src/mess/machine/sgi.c +++ b/src/mess/machine/sgi.c @@ -11,6 +11,7 @@ #define VERBOSE_LEVEL ( 2 ) +#if 0 INLINE void ATTR_PRINTF(3,4) verboselog( running_machine &machine, int n_level, const char *s_fmt, ... ) { if( VERBOSE_LEVEL >= n_level ) @@ -23,6 +24,7 @@ INLINE void ATTR_PRINTF(3,4) verboselog( running_machine &machine, int n_level, logerror( "%08x: %s", (unsigned) machine.device("maincpu")->safe_pc(), buf ); } } +#endif struct MC_t { diff --git a/src/mess/video/isa_cga.c b/src/mess/video/isa_cga.c index f8e6e619bef..ff9fdc2d8e6 100644 --- a/src/mess/video/isa_cga.c +++ b/src/mess/video/isa_cga.c @@ -1134,6 +1134,7 @@ static MC6845_UPDATE_ROW( cga_gfx_4bppl_update_row ) } +#if 0 /* The hi-res graphics mode on a colour composite monitor * * The different scaling factors mean that the '160x200' versions of screens @@ -1162,6 +1163,7 @@ static const UINT8 yc_lut[16][8] = { 3, 3, 3, 3, 2, 2, 2, 2 }, /* yellow */ { 3, 3, 3, 3, 3, 3, 3, 3 }, /* white */ }; +#endif static MC6845_UPDATE_ROW( cga_gfx_4bpph_update_row ) { diff --git a/src/mess/video/isa_mda.c b/src/mess/video/isa_mda.c index ad3dbc02718..806304f6766 100644 --- a/src/mess/video/isa_mda.c +++ b/src/mess/video/isa_mda.c @@ -42,6 +42,7 @@ static const unsigned char mda_palette[4][3] = static MC6845_UPDATE_ROW( mda_update_row ); +#if 0 /* F4 Character Displayer */ static const gfx_layout pc_16_charlayout = { @@ -73,6 +74,7 @@ static GFXDECODE_START( pcmda ) GFXDECODE_ENTRY( "mda:gfx1", 0x0000, pc_16_charlayout, 1, 1 ) GFXDECODE_ENTRY( "mda:gfx1", 0x1000, pc_8_charlayout, 1, 1 ) GFXDECODE_END +#endif static MC6845_INTERFACE( mc6845_mda_intf ) @@ -507,9 +509,11 @@ static MC6845_INTERFACE( mc6845_hercules_intf ) NULL }; +#if 0 static GFXDECODE_START( pcherc ) GFXDECODE_ENTRY( "hercules:gfx1", 0x0000, pc_16_charlayout, 1, 1 ) GFXDECODE_END +#endif MACHINE_CONFIG_FRAGMENT( pcvideo_hercules ) MCFG_SCREEN_ADD( HERCULES_SCREEN_NAME, RASTER) diff --git a/src/mess/video/nc.c b/src/mess/video/nc.c index dfd96e87084..15125b7e31c 100644 --- a/src/mess/video/nc.c +++ b/src/mess/video/nc.c @@ -18,11 +18,13 @@ void nc_state::video_start() { } +#if 0 /* two colours */ static const unsigned short nc_colour_table[NC_NUM_COLOURS] = { 0, 1,2,3 }; +#endif /* black/white */ static const rgb_t nc_palette[NC_NUM_COLOURS] = diff --git a/src/mess/video/newport.c b/src/mess/video/newport.c index 13cb0196758..51a0e836daa 100644 --- a/src/mess/video/newport.c +++ b/src/mess/video/newport.c @@ -29,6 +29,7 @@ #define VERBOSE_LEVEL ( 0 ) +#if 0 INLINE void ATTR_PRINTF(3,4) verboselog(running_machine &machine, int n_level, const char *s_fmt, ... ) { if( VERBOSE_LEVEL >= n_level ) @@ -41,6 +42,7 @@ INLINE void ATTR_PRINTF(3,4) verboselog(running_machine &machine, int n_level, c logerror( "%08x: %s", machine.device("maincpu")->safe_pc(), buf ); } } +#endif #define VC2_VIDENTRY m_VC2.nRegister[0x00] #define VC2_CURENTRY m_VC2.nRegister[0x01] diff --git a/src/mess/video/pc1251.c b/src/mess/video/pc1251.c index e4509d2bb40..369d8a73e73 100644 --- a/src/mess/video/pc1251.c +++ b/src/mess/video/pc1251.c @@ -3,13 +3,13 @@ #include "includes/pocketc.h" #include "includes/pc1251.h" -static const POCKETC_FIGURE busy={ +static const POCKETC_FIGURE /*busy={ "11 1 1 11 1 1", "1 1 1 1 1 1 1", "11 1 1 1 1 1", "1 1 1 1 1 1", "11 1 11 1e" -}, def={ +},*/ def={ "11 111 111", "1 1 1 1", "1 1 111 11", @@ -21,13 +21,13 @@ static const POCKETC_FIGURE busy={ " 1 111 1 11 1", " 1 1 1 1 1 1", "11 1 1 1 1 1e" -}, hyp={ +}, /*hyp={ "1 1 1 1 11", "1 1 1 1 1 1", "111 1 1 11", "1 1 1 1", "1 1 1 1e" -}, de={ +},*/ de={ "11 111", "1 1 1", "1 1 111", @@ -45,7 +45,7 @@ static const POCKETC_FIGURE busy={ "11 111 1 1", "1 1 1 1 1 1", "1 1 1 1 11e" -}, braces={ +}, /*braces={ " 1 1", "1 1", "1 1", @@ -63,7 +63,7 @@ static const POCKETC_FIGURE busy={ "111", "1", "111e" -}, run={ +},*/ run={ "11 1 1 1 1", "1 1 1 1 11 1", "11 1 1 1 11", @@ -75,7 +75,7 @@ static const POCKETC_FIGURE busy={ "11 11 1 1", "1 1 1 1 1", "1 1 1 1e" -}, japan={ +}, /*japan={ " 1 1 11 1 1 1", " 1 1 1 1 1 1 1 11 1", " 1 111 11 111 1 11", @@ -87,7 +87,7 @@ static const POCKETC_FIGURE busy={ " 1 1 1 1", " 1 1 1 1", "11 1 1 111e" -}, rsv={ +},*/ rsv={ "11 11 1 1", "1 1 1 1 1", "11 1 1 1", diff --git a/src/mess/video/pc1350.c b/src/mess/video/pc1350.c index 174451dd344..ae1dd3ace1a 100644 --- a/src/mess/video/pc1350.c +++ b/src/mess/video/pc1350.c @@ -3,13 +3,13 @@ #include "includes/pocketc.h" #include "includes/pc1350.h" -static const POCKETC_FIGURE busy={ +static const POCKETC_FIGURE /*busy={ "11 1 1 11 1 1", "1 1 1 1 1 1 1", "11 1 1 1 1 1", "1 1 1 1 1 1", "11 1 11 1e" -}, def={ +},*/ def={ "11 111 111", "1 1 1 1", "1 1 111 11", @@ -21,7 +21,7 @@ static const POCKETC_FIGURE busy={ " 1 111 1 11 1", " 1 1 1 1 1 1", "11 1 1 1 1 1e" -}, hyp={ +}, /*hyp={ "1 1 1 1 11", "1 1 1 1 1 1", "111 1 1 11", @@ -63,7 +63,7 @@ static const POCKETC_FIGURE busy={ "111", "1", "111e" -}, run={ +},*/ run={ "11 1 1 1 1", "1 1 1 1 11 1", "11 1 1 1 11", @@ -87,13 +87,13 @@ static const POCKETC_FIGURE busy={ " 1 1 1 1", " 1 1 1 1", "11 1 1 111e" -}, rsv={ +}/*, rsv={ "11 11 1 1", "1 1 1 1 1", "11 1 1 1", "1 1 1 1 1", "1 1 11 1e" -}; +}*/; READ8_MEMBER(pc1350_state::pc1350_lcd_read) { diff --git a/src/mess/video/pc1401.c b/src/mess/video/pc1401.c index b7dc418ae41..6b499d833a0 100644 --- a/src/mess/video/pc1401.c +++ b/src/mess/video/pc1401.c @@ -92,7 +92,7 @@ static const POCKETC_FIGURE busy={ "111", "1", "111e" -}, run={ +}/*, run={ "11 1 1 1 1", "1 1 1 1 11 1", "11 1 1 1 11", @@ -122,7 +122,7 @@ static const POCKETC_FIGURE busy={ "11 1 1 1", "1 1 1 1 1", "1 1 11 1e" -}; +}*/; #define DOWN 57 #define RIGHT 114 diff --git a/src/mess/video/pcw.c b/src/mess/video/pcw.c index 500fe8a1706..412d0fc1c19 100644 --- a/src/mess/video/pcw.c +++ b/src/mess/video/pcw.c @@ -27,11 +27,13 @@ void pcw_state::video_start() m_prn_output->fill(1, rect); } +#if 0 /* two colours */ static const unsigned short pcw_colour_table[PCW_NUM_COLOURS] = { 0, 1 }; +#endif /* black/white */ static const rgb_t pcw_palette[PCW_NUM_COLOURS] = diff --git a/src/mess/video/pcw16.c b/src/mess/video/pcw16.c index b8c579bc0c3..9dec0ed0e30 100644 --- a/src/mess/video/pcw16.c +++ b/src/mess/video/pcw16.c @@ -3,6 +3,7 @@ #include "machine/ram.h" +#if 0 /* 16 colours, + 1 for border */ static const unsigned short pcw16_colour_table[PCW16_NUM_COLOURS] = { @@ -10,6 +11,7 @@ static const unsigned short pcw16_colour_table[PCW16_NUM_COLOURS] = 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 }; +#endif static const rgb_t pcw16_palette[PCW16_NUM_COLOURS] = {