summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2022-03-25 20:29:17 +1100
committer Robbbert <Robbbert@users.noreply.github.com>2022-03-25 20:29:17 +1100
commita944f7ffdf914e22681ef25aaf882f23015e2262 (patch)
tree62085dbaa7cff0a411e19ba3ad3974707b941a50 /src
parentebb3a4f142373b1cfbce1f701585d83a0d2e5ec4 (diff)
init vars for coverity (drivers/f,g)
Diffstat (limited to 'src')
-rw-r--r--src/mame/drivers/falcots.cpp2
-rw-r--r--src/mame/drivers/falcots28.cpp2
-rw-r--r--src/mame/drivers/famibox.cpp24
-rw-r--r--src/mame/drivers/fastinvaders.cpp46
-rw-r--r--src/mame/drivers/fccpu30.cpp10
-rw-r--r--src/mame/drivers/fidel_dames.cpp4
-rw-r--r--src/mame/drivers/fireball.cpp14
-rw-r--r--src/mame/drivers/firebeat.cpp36
-rw-r--r--src/mame/drivers/flower.cpp6
-rw-r--r--src/mame/drivers/flyball.cpp22
-rw-r--r--src/mame/drivers/fontwriter.cpp2
-rw-r--r--src/mame/drivers/forte2.cpp2
-rw-r--r--src/mame/drivers/fp1100.cpp34
-rw-r--r--src/mame/drivers/fp200.cpp12
-rw-r--r--src/mame/drivers/fp6000.cpp10
-rw-r--r--src/mame/drivers/fresh.cpp6
-rw-r--r--src/mame/drivers/fs3216.cpp18
-rw-r--r--src/mame/drivers/funkball.cpp18
-rw-r--r--src/mame/drivers/funtech.cpp6
-rw-r--r--src/mame/drivers/gal3.cpp4
-rw-r--r--src/mame/drivers/galaxi.cpp16
-rw-r--r--src/mame/drivers/galaxian_rockclim.cpp6
22 files changed, 150 insertions, 150 deletions
diff --git a/src/mame/drivers/falcots.cpp b/src/mame/drivers/falcots.cpp
index b4619577087..c6ee6196427 100644
--- a/src/mame/drivers/falcots.cpp
+++ b/src/mame/drivers/falcots.cpp
@@ -57,7 +57,7 @@ private:
required_region_ptr<u8> m_chargen;
optional_ioport_array<16> m_keys;
- u8 m_key_scan;
+ u8 m_key_scan = 0;
};
void falcots_state::machine_start()
diff --git a/src/mame/drivers/falcots28.cpp b/src/mame/drivers/falcots28.cpp
index bb084d1cb83..5ffca0b3efb 100644
--- a/src/mame/drivers/falcots28.cpp
+++ b/src/mame/drivers/falcots28.cpp
@@ -89,7 +89,7 @@ private:
void attr_map(address_map &map);
SCN2672_DRAW_CHARACTER_MEMBER(draw_character);
- uint8_t m_key_scan;
+ uint8_t m_key_scan = 0;
};
diff --git a/src/mame/drivers/famibox.cpp b/src/mame/drivers/famibox.cpp
index 120a7b935af..597ccaabdfc 100644
--- a/src/mame/drivers/famibox.cpp
+++ b/src/mame/drivers/famibox.cpp
@@ -105,23 +105,23 @@ private:
required_memory_bank_array<4> m_nt_page;
std::unique_ptr<uint8_t[]> m_nt_ram;
- uint8_t m_mirroring;
+ uint8_t m_mirroring = 0;
- uint8_t m_curr_slot;
+ uint8_t m_curr_slot = 0;
- uint8_t m_exception_mask;
- uint8_t m_exception_cause;
+ uint8_t m_exception_mask = 0;
+ uint8_t m_exception_cause = 0;
- emu_timer* m_attract_timer;
- uint8_t m_attract_timer_period;
+ emu_timer* m_attract_timer = nullptr;
+ uint8_t m_attract_timer_period = 0;
- uint32_t m_coins;
- uint8_t m_zapper_enable;
- uint8_t m_joypad_enable;
- uint8_t m_joypad_swap;
+ uint32_t m_coins = 0;
+ uint8_t m_zapper_enable = 0;
+ uint8_t m_joypad_enable = 0;
+ uint8_t m_joypad_swap = 0;
- emu_timer* m_gameplay_timer;
- uint8_t m_money_reg;
+ emu_timer* m_gameplay_timer = nullptr;
+ uint8_t m_money_reg = 0;
void set_mirroring(int mirroring);
void sprite_dma_w(address_space &space, uint8_t data);
diff --git a/src/mame/drivers/fastinvaders.cpp b/src/mame/drivers/fastinvaders.cpp
index 558e0a6ee58..b8ba6beac3b 100644
--- a/src/mame/drivers/fastinvaders.cpp
+++ b/src/mame/drivers/fastinvaders.cpp
@@ -95,29 +95,29 @@ private:
required_device<pic8259_device> m_pic8259;
required_device<i8257_device> m_dma8257;
- uint8_t m_rest55;
- uint8_t m_rest65;
- uint8_t m_trap;
- uint8_t m_ar;
- uint8_t m_av;
- uint8_t m_prom[256];
- uint8_t m_riga_sup;
- uint8_t m_scudi;
- uint8_t m_cannone;
- uint8_t m_riga_inf;
-
- uint8_t m_irq0;
- uint8_t m_irq1;
- uint8_t m_irq2;
- uint8_t m_irq3;
- uint8_t m_irq4;
- uint8_t m_irq5;
- uint8_t m_irq6;
-
- uint8_t m_start2_value;
- uint8_t m_dma1;
- uint8_t m_io_40;
- uint8_t m_hsync;
+ uint8_t m_rest55 = 0;
+ uint8_t m_rest65 = 0;
+ uint8_t m_trap = 0;
+ uint8_t m_ar = 0;
+ uint8_t m_av = 0;
+ uint8_t m_prom[256]{};
+ uint8_t m_riga_sup = 0;
+ uint8_t m_scudi = 0;
+ uint8_t m_cannone = 0;
+ uint8_t m_riga_inf = 0;
+
+ uint8_t m_irq0 = 0;
+ uint8_t m_irq1 = 0;
+ uint8_t m_irq2 = 0;
+ uint8_t m_irq3 = 0;
+ uint8_t m_irq4 = 0;
+ uint8_t m_irq5 = 0;
+ uint8_t m_irq6 = 0;
+
+ uint8_t m_start2_value = 0;
+ uint8_t m_dma1 = 0;
+ uint8_t m_io_40 = 0;
+ uint8_t m_hsync = 0;
};
diff --git a/src/mame/drivers/fccpu30.cpp b/src/mame/drivers/fccpu30.cpp
index acd9af219a0..29183b9c882 100644
--- a/src/mame/drivers/fccpu30.cpp
+++ b/src/mame/drivers/fccpu30.cpp
@@ -282,9 +282,9 @@ private:
/* Interrupt support */
void cpu_space_map(address_map &map);
DECLARE_WRITE_LINE_MEMBER(fga_irq_callback);
- uint8_t fga_irq_state;
- // int fga_irq_vector;
- int fga_irq_level;
+ uint8_t fga_irq_state = 0;
+ // int fga_irq_vector = 0;
+ int fga_irq_level = 0;
/* Rotary switch PIT input */
uint8_t rotary_rd();
@@ -324,8 +324,8 @@ private:
void update_irq_to_maincpu();
// Pointer to System ROMs needed by bootvect_r and masking RAM buffer for post reset accesses
- uint32_t *m_sysrom;
- uint32_t m_sysram[2];
+ uint32_t *m_sysrom = nullptr;
+ uint32_t m_sysram[2]{};
uint8_t m_board_id;
};
diff --git a/src/mame/drivers/fidel_dames.cpp b/src/mame/drivers/fidel_dames.cpp
index a3b56f15918..bd81b6dbdda 100644
--- a/src/mame/drivers/fidel_dames.cpp
+++ b/src/mame/drivers/fidel_dames.cpp
@@ -76,8 +76,8 @@ private:
void init_board(int state);
u8 read_board_row(u8 row);
- u8 m_inp_mux;
- u8 m_led_select;
+ u8 m_inp_mux = 0;
+ u8 m_led_select = 0;
};
void dsc_state::machine_start()
diff --git a/src/mame/drivers/fireball.cpp b/src/mame/drivers/fireball.cpp
index e21528a2c57..7c8b47d1ddb 100644
--- a/src/mame/drivers/fireball.cpp
+++ b/src/mame/drivers/fireball.cpp
@@ -75,13 +75,13 @@ private:
void fireball_io_map(address_map &map);
void fireball_map(address_map &map);
- uint8_t m_p1_data;
- uint8_t m_p3_data;
- uint8_t int_timing;
- uint8_t int_data;
- uint8_t ay_data;
- uint8_t to_ay_data;
- uint8_t m_display_data;
+ uint8_t m_p1_data = 0;
+ uint8_t m_p3_data = 0;
+ uint8_t int_timing = 0;
+ uint8_t int_data = 0;
+ uint8_t ay_data = 0;
+ uint8_t to_ay_data = 0;
+ uint8_t m_display_data = 0;
virtual void machine_reset() override;
virtual void machine_start() override { m_digits.resolve(); }
required_device<i8031_device> m_maincpu;
diff --git a/src/mame/drivers/firebeat.cpp b/src/mame/drivers/firebeat.cpp
index e3b5e08df02..f85d5dd8b4c 100644
--- a/src/mame/drivers/firebeat.cpp
+++ b/src/mame/drivers/firebeat.cpp
@@ -202,12 +202,12 @@ private:
void update_fft();
void apply_fft(uint32_t buf_index);
- float m_audio_buf[TOTAL_BUFFERS][TOTAL_CHANNELS][FFT_LENGTH];
- float m_fft_buf[TOTAL_CHANNELS][FFT_LENGTH];
- int m_audio_fill_index;
- int m_audio_count[TOTAL_CHANNELS];
+ float m_audio_buf[TOTAL_BUFFERS][TOTAL_CHANNELS][FFT_LENGTH]{};
+ float m_fft_buf[TOTAL_CHANNELS][FFT_LENGTH]{};
+ int m_audio_fill_index = 0;
+ int m_audio_count[TOTAL_CHANNELS]{};
- int m_bars[TOTAL_CHANNELS][TOTAL_BARS];
+ int m_bars[TOTAL_CHANNELS][TOTAL_BARS]{};
};
firebeat_extend_spectrum_analyzer_device::firebeat_extend_spectrum_analyzer_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
@@ -368,7 +368,7 @@ struct IBUTTON_SUBKEY
struct IBUTTON
{
- IBUTTON_SUBKEY subkey[3];
+ IBUTTON_SUBKEY subkey[3]{};
};
/*****************************************************************************/
@@ -429,10 +429,10 @@ protected:
DECLARE_WRITE_LINE_MEMBER(gcu_interrupt);
DECLARE_WRITE_LINE_MEMBER(sound_irq_callback);
- int m_cabinet_info;
+ int m_cabinet_info = 0;
- uint8_t m_extend_board_irq_enable;
- uint8_t m_extend_board_irq_active;
+ uint8_t m_extend_board_irq_enable = 0;
+ uint8_t m_extend_board_irq_active = 0;
required_device<ppc4xx_device> m_maincpu;
required_shared_ptr<uint32_t> m_work_ram;
@@ -464,9 +464,9 @@ private:
// void comm_uart_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
IBUTTON m_ibutton;
- int m_ibutton_state;
- int m_ibutton_read_subkey_ptr;
- uint8_t m_ibutton_subkey_data[0x40];
+ int m_ibutton_state = 0;
+ int m_ibutton_read_subkey_ptr = 0;
+ uint8_t m_ibutton_subkey_data[0x40]{};
required_device<pc16552_device> m_duart_com;
@@ -474,7 +474,7 @@ private:
required_ioport_array<4> m_io_inputs;
- uint8_t m_control;
+ uint8_t m_control = 0;
};
class firebeat_spu_state : public firebeat_state
@@ -517,12 +517,12 @@ private:
uint16_t firebeat_waveram_r(offs_t offset);
void firebeat_waveram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- emu_timer *m_dma_timer;
- bool m_sync_ata_irq;
+ emu_timer *m_dma_timer = nullptr;
+ bool m_sync_ata_irq = false;
- uint32_t m_spu_ata_dma;
- int m_spu_ata_dmarq;
- uint32_t m_wave_bank;
+ uint32_t m_spu_ata_dma = 0;
+ int m_spu_ata_dmarq = 0;
+ uint32_t m_wave_bank = 0;
required_device<m68000_device> m_audiocpu;
required_device<cy7c131_device> m_dpram;
diff --git a/src/mame/drivers/flower.cpp b/src/mame/drivers/flower.cpp
index ddbd945663b..f12c7b1a12c 100644
--- a/src/mame/drivers/flower.cpp
+++ b/src/mame/drivers/flower.cpp
@@ -162,9 +162,9 @@ private:
bool m_audio_nmi_enable = false;
bool m_flip_screen = false;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_tx_tilemap;
+ tilemap_t *m_bg_tilemap = nullptr;
+ tilemap_t *m_fg_tilemap = nullptr;
+ tilemap_t *m_tx_tilemap = nullptr;
};
TILE_GET_INFO_MEMBER(flower_state::get_tx_tile_info)
diff --git a/src/mame/drivers/flyball.cpp b/src/mame/drivers/flyball.cpp
index e9eda030204..f6f8b29f963 100644
--- a/src/mame/drivers/flyball.cpp
+++ b/src/mame/drivers/flyball.cpp
@@ -104,20 +104,20 @@ private:
output_finder<> m_lamp;
/* video-related */
- tilemap_t *m_tmap;
- uint8_t m_pitcher_vert;
- uint8_t m_pitcher_horz;
- uint8_t m_pitcher_pic;
- uint8_t m_ball_vert;
- uint8_t m_ball_horz;
+ tilemap_t *m_tmap = nullptr;
+ uint8_t m_pitcher_vert = 0;
+ uint8_t m_pitcher_horz = 0;
+ uint8_t m_pitcher_pic = 0;
+ uint8_t m_ball_vert = 0;
+ uint8_t m_ball_horz = 0;
/* misc */
- uint8_t m_potmask;
- uint8_t m_potsense;
+ uint8_t m_potmask = 0;
+ uint8_t m_potsense = 0;
- emu_timer *m_pot_assert_timer[64];
- emu_timer *m_pot_clear_timer;
- emu_timer *m_quarter_timer;
+ emu_timer *m_pot_assert_timer[64]{};
+ emu_timer *m_pot_clear_timer = nullptr;
+ emu_timer *m_quarter_timer = nullptr;
};
diff --git a/src/mame/drivers/fontwriter.cpp b/src/mame/drivers/fontwriter.cpp
index 96cf3036134..d949b94de89 100644
--- a/src/mame/drivers/fontwriter.cpp
+++ b/src/mame/drivers/fontwriter.cpp
@@ -62,7 +62,7 @@ private:
// driver_device overrides
virtual void video_start() override;
- uint8_t m_vbl, m_vbl2;
+ uint8_t m_vbl = 0, m_vbl2 = 0;
};
void fontwriter_state::machine_reset()
diff --git a/src/mame/drivers/forte2.cpp b/src/mame/drivers/forte2.cpp
index b9ffadaca49..94d28229d79 100644
--- a/src/mame/drivers/forte2.cpp
+++ b/src/mame/drivers/forte2.cpp
@@ -68,7 +68,7 @@ private:
required_device<cpu_device> m_maincpu;
- uint8_t m_input_mask;
+ uint8_t m_input_mask = 0;
};
diff --git a/src/mame/drivers/fp1100.cpp b/src/mame/drivers/fp1100.cpp
index 0c3208d75b1..562f212bdea 100644
--- a/src/mame/drivers/fp1100.cpp
+++ b/src/mame/drivers/fp1100.cpp
@@ -99,28 +99,28 @@ private:
void sub_map(address_map &map);
void handle_int_to_main();
- u8 m_irq_mask;
- u8 m_slot_num;
- u8 m_kbd_row;
- u8 m_col_border;
- u8 m_col_cursor;
- u8 m_col_display;
- u8 m_centronics_busy;
- u8 m_cass_data[4];
- bool m_bank_sel;
- bool m_main_irq_status;
- bool m_sub_irq_status;
- bool m_cassbit;
- bool m_cassold;
+ u8 m_irq_mask = 0;
+ u8 m_slot_num = 0;
+ u8 m_kbd_row = 0;
+ u8 m_col_border = 0;
+ u8 m_col_cursor = 0;
+ u8 m_col_display = 0;
+ u8 m_centronics_busy = 0;
+ u8 m_cass_data[4]{};
+ bool m_bank_sel = false;
+ bool m_main_irq_status = false;
+ bool m_sub_irq_status = false;
+ bool m_cassbit = false;
+ bool m_cassold = false;
struct {
- u8 id;
+ u8 id = 0;
}m_slot[8];
struct {
- u8 porta;
- u8 portb;
- u8 portc;
+ u8 porta = 0;
+ u8 portb = 0;
+ u8 portc = 0;
}m_upd7801;
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_subcpu;
diff --git a/src/mame/drivers/fp200.cpp b/src/mame/drivers/fp200.cpp
index 6794d2c5122..943f657833f 100644
--- a/src/mame/drivers/fp200.cpp
+++ b/src/mame/drivers/fp200.cpp
@@ -43,14 +43,14 @@ public:
private:
// devices
required_device<i8085a_cpu_device> m_maincpu;
- uint8_t m_io_type;
- uint8_t *m_chargen;
- uint8_t m_keyb_mux;
+ uint8_t m_io_type = 0;
+ uint8_t *m_chargen = nullptr;
+ uint8_t m_keyb_mux = 0;
struct{
- uint8_t x;
- uint8_t y;
- uint8_t status;
+ uint8_t x = 0;
+ uint8_t y = 0;
+ uint8_t status = 0;
std::unique_ptr<uint8_t[]> vram;
std::unique_ptr<uint8_t[]> attr;
}m_lcd;
diff --git a/src/mame/drivers/fp6000.cpp b/src/mame/drivers/fp6000.cpp
index 51bec4e9682..c673160cd7d 100644
--- a/src/mame/drivers/fp6000.cpp
+++ b/src/mame/drivers/fp6000.cpp
@@ -76,7 +76,7 @@ private:
void fp6000_io(address_map &map);
void fp6000_map(address_map &map);
- emu_timer *m_pit_timer;
+ emu_timer *m_pit_timer = nullptr;
void pit_timer0_w(int state);
TIMER_CALLBACK_MEMBER(pit_timer0_clear);
void pit_timer2_w(int state);
@@ -103,11 +103,11 @@ private:
void centronics_fault_w(int state) { m_centronics_fault = state; };
void centronics_perror_w(int state) { m_centronics_perror = state; };
- uint8_t m_port_0a;
+ uint8_t m_port_0a = 0;
- int m_centronics_busy;
- int m_centronics_fault;
- int m_centronics_perror;
+ int m_centronics_busy = 0;
+ int m_centronics_fault = 0;
+ int m_centronics_perror = 0;
};
diff --git a/src/mame/drivers/fresh.cpp b/src/mame/drivers/fresh.cpp
index d49ce18c23b..396c088dc4e 100644
--- a/src/mame/drivers/fresh.cpp
+++ b/src/mame/drivers/fresh.cpp
@@ -52,8 +52,8 @@ protected:
virtual void video_start() override;
private:
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_bg_2_tilemap;
+ tilemap_t *m_bg_tilemap = nullptr;
+ tilemap_t *m_bg_2_tilemap = nullptr;
required_shared_ptr<uint16_t> m_bg_videoram;
required_shared_ptr<uint16_t> m_bg_2_videoram;
@@ -71,7 +71,7 @@ private:
void fresh_attr_2_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
TILE_GET_INFO_MEMBER(get_fresh_bg_2_tile_info);
- uint16_t m_d30000_value;
+ uint16_t m_d30000_value = 0;
void d30000_write(uint16_t data)
{
diff --git a/src/mame/drivers/fs3216.cpp b/src/mame/drivers/fs3216.cpp
index 905037f069d..b44ae1962b9 100644
--- a/src/mame/drivers/fs3216.cpp
+++ b/src/mame/drivers/fs3216.cpp
@@ -93,15 +93,15 @@ private:
required_shared_ptr<u16> m_videoram;
required_region_ptr<u8> m_chargen;
- u32 m_mmu_reg[4];
- bool m_from_reset;
-
- u8 m_floppy_status;
- u8 m_floppy_control;
- u8 m_floppy_select;
- u8 m_fdc_select;
- u16 m_fdc_dma_count;
- emu_timer *m_fdc_dma_timer;
+ u32 m_mmu_reg[4]{};
+ bool m_from_reset = false;
+
+ u8 m_floppy_status = 0;
+ u8 m_floppy_control = 0;
+ u8 m_floppy_select = 0;
+ u8 m_fdc_select = 0;
+ u16 m_fdc_dma_count = 0;
+ emu_timer *m_fdc_dma_timer = nullptr;
std::unique_ptr<u8[]> m_fdc_ram;
};
diff --git a/src/mame/drivers/funkball.cpp b/src/mame/drivers/funkball.cpp
index 3747fcda66a..cc1dc0b6d01 100644
--- a/src/mame/drivers/funkball.cpp
+++ b/src/mame/drivers/funkball.cpp
@@ -100,15 +100,15 @@ public:
void funkball(machine_config &config);
private:
- uint8_t m_funkball_config_reg_sel;
- uint8_t m_funkball_config_regs[256];
- uint32_t m_cx5510_regs[256/4];
+ uint8_t m_funkball_config_reg_sel = 0;
+ uint8_t m_funkball_config_regs[256]{};
+ uint32_t m_cx5510_regs[256/4]{};
std::unique_ptr<uint8_t[]> m_bios_ram;
- uint32_t m_biu_ctrl_reg[256/4];
+ uint32_t m_biu_ctrl_reg[256/4]{};
- uint32_t flashbank_addr;
- uint16_t m_latched_timer;
+ uint32_t flashbank_addr = 0;
+ uint16_t m_latched_timer = 0;
// devices
required_device<voodoo_1_device> m_voodoo;
@@ -132,10 +132,10 @@ private:
struct
{
/* PCI */
- uint32_t command;
- uint32_t base_addr;
+ uint32_t command = 0;
+ uint32_t base_addr = 0;
- uint32_t init_enable;
+ uint32_t init_enable = 0;
} m_voodoo_pci_regs;
uint32_t biu_ctrl_r(offs_t offset);
void biu_ctrl_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
diff --git a/src/mame/drivers/funtech.cpp b/src/mame/drivers/funtech.cpp
index 117a96e7631..d8e4b27a7a1 100644
--- a/src/mame/drivers/funtech.cpp
+++ b/src/mame/drivers/funtech.cpp
@@ -66,9 +66,9 @@ private:
required_device<gfxdecode_device> m_gfxdecode;
output_finder<6> m_lamps;
- uint8_t m_vreg;
+ uint8_t m_vreg = 0;
- tilemap_t *m_fg_tilemap;
+ tilemap_t *m_fg_tilemap = nullptr;
INTERRUPT_GEN_MEMBER(vblank_interrupt);
@@ -80,7 +80,7 @@ private:
TILE_GET_INFO_MEMBER(get_fg_tile_info);
- tilemap_t *m_reel_tilemap[3];
+ tilemap_t *m_reel_tilemap[3]{};
template<uint8_t Reel> void reel_ram_w(offs_t offset, uint8_t data);
diff --git a/src/mame/drivers/gal3.cpp b/src/mame/drivers/gal3.cpp
index 5dc9a84a89a..21ef2b0b360 100644
--- a/src/mame/drivers/gal3.cpp
+++ b/src/mame/drivers/gal3.cpp
@@ -170,8 +170,8 @@ private:
required_device_array<namcos21_3d_device, 2> m_namcos21_3d;
required_device_array<namcos21_dsp_c67_device, 2> m_namcos21_dsp_c67;
- uint32_t m_led_mst;
- uint32_t m_led_slv;
+ uint32_t m_led_mst = 0;
+ uint32_t m_led_slv = 0;
uint32_t led_mst_r();
void led_mst_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
diff --git a/src/mame/drivers/galaxi.cpp b/src/mame/drivers/galaxi.cpp
index eec3429f311..7d6a0ea4bfc 100644
--- a/src/mame/drivers/galaxi.cpp
+++ b/src/mame/drivers/galaxi.cpp
@@ -95,19 +95,19 @@ private:
output_finder<6> m_lamps;
/* video-related */
- tilemap_t *m_bg1_tmap;
- tilemap_t *m_bg2_tmap;
- tilemap_t *m_bg3_tmap;
- tilemap_t *m_bg4_tmap;
- tilemap_t *m_fg_tmap;
+ tilemap_t *m_bg1_tmap = nullptr;
+ tilemap_t *m_bg2_tmap = nullptr;
+ tilemap_t *m_bg3_tmap = nullptr;
+ tilemap_t *m_bg4_tmap = nullptr;
+ tilemap_t *m_fg_tmap = nullptr;
uint16_t m_bg3_xscroll;
uint16_t m_bg3_yscroll;
/* misc */
- int m_hopper;
- int m_ticket;
- uint16_t m_out;
+ int m_hopper = 0;
+ int m_ticket = 0;
+ uint16_t m_out = 0;
void bg1_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
void bg2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
diff --git a/src/mame/drivers/galaxian_rockclim.cpp b/src/mame/drivers/galaxian_rockclim.cpp
index 6a42b6a6e31..16891e723ad 100644
--- a/src/mame/drivers/galaxian_rockclim.cpp
+++ b/src/mame/drivers/galaxian_rockclim.cpp
@@ -34,10 +34,10 @@ private:
uint8_t rockclim_videoram_r(offs_t offset);
TILE_GET_INFO_MEMBER(rockclim_get_tile_info);
- uint16_t m_rockclim_v;
- uint16_t m_rockclim_h;
+ uint16_t m_rockclim_v = 0;
+ uint16_t m_rockclim_h = 0;
- tilemap_t *m_rockclim_tilemap;
+ tilemap_t *m_rockclim_tilemap = nullptr;
required_shared_ptr<uint8_t> m_rockclim_videoram;
required_device<gfxdecode_device> m_gfxdecode2;
required_device<palette_device> m_palette2;