From f6a0ae20273d3dcdbd3c4a6b4ea817a34db6a5e8 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 22 May 2024 00:26:56 -0500 Subject: [PATCH] [ox/std] Fix some Windows warnings --- deps/ox/src/ox/std/reader.cpp | 4 ++-- deps/ox/src/ox/std/stacktrace.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/ox/src/ox/std/reader.cpp b/deps/ox/src/ox/std/reader.cpp index 5f21556e..9c1ab5c6 100644 --- a/deps/ox/src/ox/std/reader.cpp +++ b/deps/ox/src/ox/std/reader.cpp @@ -42,11 +42,11 @@ ox::Result FileReader::read(char *v, std::size_t cnt) noexcept { } ox::Error FileReader::seekg(std::size_t p) noexcept { - return OxError(fseek(m_file, static_cast(p), SEEK_CUR) != 0); + return OxError(fseek(m_file, static_cast(p), SEEK_CUR) != 0); } ox::Error FileReader::seekg(int64_t p, ios_base::seekdir sd) noexcept { - return OxError(fseek(m_file, p, sdMap(sd)) != 0); + return OxError(fseek(m_file, static_cast(p), sdMap(sd)) != 0); } ox::Result FileReader::tellg() noexcept { diff --git a/deps/ox/src/ox/std/stacktrace.cpp b/deps/ox/src/ox/std/stacktrace.cpp index 8a23afcd..acbfdb46 100644 --- a/deps/ox/src/ox/std/stacktrace.cpp +++ b/deps/ox/src/ox/std/stacktrace.cpp @@ -26,7 +26,7 @@ namespace ox { #if defined(OX_USE_STDLIB) && __has_include() -[[nodiscard]] +[[nodiscard]] [[maybe_unused]] static auto symbolicate([[maybe_unused]]void **frames, [[maybe_unused]]std::size_t frameCnt, [[maybe_unused]]const char *linePrefix) {