From f6ae5a65c6eeaff53817add3b0b11c1582c14c57 Mon Sep 17 00:00:00 2001 From: AJR Date: Sat, 23 Oct 2021 01:57:56 -0400 Subject: rgum.cpp: Fix clang error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture] --- src/mame/drivers/rgum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mame/drivers/rgum.cpp b/src/mame/drivers/rgum.cpp index eb93f600e25..7a1adea5261 100644 --- a/src/mame/drivers/rgum.cpp +++ b/src/mame/drivers/rgum.cpp @@ -314,7 +314,7 @@ void rgum_state::rgum(machine_config &config) ay8910_device &aysnd(AY8910(config, "aysnd", 24_MHz_XTAL / 16)); aysnd.add_route(ALL_OUTPUTS, "mono", 0.50); // guessed to use the same xtal as the crtc aysnd.port_a_read_callback().set([this](){ return machine().rand() & 0x01; }); // TODO: hack! Otherwise it flashes 'RAM ERROR 0', then black screen - aysnd.port_b_read_callback().set([this](){ return 0x00; }); // 'micro palline err.' (microballs err.) if bit 0 is set + aysnd.port_b_read_callback().set_constant(0x00); // 'micro palline err.' (microballs err.) if bit 0 is set UPD7759(config, "upd").add_route(ALL_OUTPUTS, "mono", 0.50); } -- cgit v1.2.3