From b0243dd3e5e237312d7d7f350310b2b0e9f638eb Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Wed, 22 May 2024 14:18:05 +0300 Subject: [PATCH] fixed a few compiler issues --- externals/CMakeLists.txt | 3 +++ src/core/platform.h | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 4a285f48..24bca2f1 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -90,3 +90,6 @@ endif() # sirit add_subdirectory(sirit EXCLUDE_FROM_ALL) +if (WIN32) + target_compile_options(sirit PUBLIC "-Wno-error=unused-command-line-argument") +endif() \ No newline at end of file diff --git a/src/core/platform.h b/src/core/platform.h index 084f161b..60baee6e 100644 --- a/src/core/platform.h +++ b/src/core/platform.h @@ -7,6 +7,7 @@ #include "common/logging/log.h" #include "common/singleton.h" #include "common/types.h" +#include "magic_enum.hpp" #include #include @@ -24,7 +25,8 @@ enum class InterruptId : u32 { Compute5RelMem = 5u, Compute6RelMem = 6u, GfxEop = 7u, - GfxFlip = 8u + GfxFlip = 8u, + MaxValue }; using IrqHandler = std::function; @@ -79,7 +81,7 @@ private: std::queue one_time_subscribers{}; std::mutex m_lock{}; }; - std::array irq_contexts{}; + std::array irq_contexts{}; }; using IrqC = Common::Singleton;