From b04cc2367018db935ea21f1182a2c9d89da088cc Mon Sep 17 00:00:00 2001 From: "Herman S." <429230+has207@users.noreply.github.com> Date: Sun, 15 Mar 2026 21:43:30 +0900 Subject: [PATCH] [ARM64] Suppress tomlcpusplus compile warnings --- src/xenia/app/emulator_window.cc | 7 +++++++ src/xenia/config.h | 7 +++++++ src/xenia/patcher/patch_db.h | 7 +++++++ src/xenia/patcher/plugin_loader.h | 7 +++++++ 4 files changed, 28 insertions(+) diff --git a/src/xenia/app/emulator_window.cc b/src/xenia/app/emulator_window.cc index b7912e793..e49159e69 100644 --- a/src/xenia/app/emulator_window.cc +++ b/src/xenia/app/emulator_window.cc @@ -11,7 +11,14 @@ #include "third_party/imgui/imgui.h" #include "third_party/stb/stb_image_write.h" +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wabsolute-value" +#endif #include "third_party/tomlplusplus/toml.hpp" +#if defined(__clang__) +#pragma clang diagnostic pop +#endif #include "xenia/base/assert.h" #include "xenia/base/clock.h" #include "xenia/base/cvar.h" diff --git a/src/xenia/config.h b/src/xenia/config.h index 907d5ab2c..9c811d9de 100644 --- a/src/xenia/config.h +++ b/src/xenia/config.h @@ -11,7 +11,14 @@ #define XENIA_CONFIG_H_ #include +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wabsolute-value" +#endif #include "third_party/tomlplusplus/toml.hpp" +#if defined(__clang__) +#pragma clang diagnostic pop +#endif toml::parse_result ParseFile(const std::filesystem::path& filename); diff --git a/src/xenia/patcher/patch_db.h b/src/xenia/patcher/patch_db.h index fef737ee8..12b0c3f63 100644 --- a/src/xenia/patcher/patch_db.h +++ b/src/xenia/patcher/patch_db.h @@ -15,7 +15,14 @@ #include #include +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wabsolute-value" +#endif #include "third_party/tomlplusplus/toml.hpp" +#if defined(__clang__) +#pragma clang diagnostic pop +#endif namespace xe { namespace patcher { diff --git a/src/xenia/patcher/plugin_loader.h b/src/xenia/patcher/plugin_loader.h index 46cb763be..8e80b1b5e 100644 --- a/src/xenia/patcher/plugin_loader.h +++ b/src/xenia/patcher/plugin_loader.h @@ -10,7 +10,14 @@ #ifndef XENIA_PLUGIN_LOADER_H_ #define XENIA_PLUGIN_LOADER_H_ +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wabsolute-value" +#endif #include "third_party/tomlplusplus/toml.hpp" +#if defined(__clang__) +#pragma clang diagnostic pop +#endif #include "xenia/kernel/kernel_state.h" #include "xenia/memory.h"