From 34c937a1430ba320ee65de590f92d3f5ba3af599 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Wed, 2 Sep 2020 12:12:38 -0230 Subject: [PATCH] Fix compile warning in clang, and compile error for libretro build. --- src/debugger/gui/QuadTariWidget.cxx | 2 +- src/libretro/Makefile.common | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/debugger/gui/QuadTariWidget.cxx b/src/debugger/gui/QuadTariWidget.cxx index 7a76b0524..2c605da37 100644 --- a/src/debugger/gui/QuadTariWidget.cxx +++ b/src/debugger/gui/QuadTariWidget.cxx @@ -30,7 +30,7 @@ QuadTariWidget::QuadTariWidget(GuiObject* boss, const GUI::Font& font, { string label = (isLeftPort() ? "Left" : "Right") + string(" (QuadTari)"); StaticTextWidget* t = new StaticTextWidget(boss, font, x, y + 2, label); - QuadTari& qt = (QuadTari&)controller; + QuadTari& qt = static_cast(controller); x += font.getMaxCharWidth() * 2; y = t->getBottom() + font.getFontHeight() * 1.25; diff --git a/src/libretro/Makefile.common b/src/libretro/Makefile.common index 994628725..8f2bbf81a 100644 --- a/src/libretro/Makefile.common +++ b/src/libretro/Makefile.common @@ -113,6 +113,7 @@ SOURCES_CXX := \ $(CORE_DIR)/emucore/PointingDevice.cxx \ $(CORE_DIR)/emucore/Props.cxx \ $(CORE_DIR)/emucore/PropsSet.cxx \ + $(CORE_DIR)/emucore/QuadTari.cxx \ $(CORE_DIR)/emucore/SaveKey.cxx \ $(CORE_DIR)/emucore/Serializer.cxx \ $(CORE_DIR)/emucore/Settings.cxx \