Compare commits
3 Commits
6cc6e9e7ed
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| ef1c108b58 | |||
| 6a054cd970 | |||
| 9070e6e109 |
+2
-2
@@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.19)
|
||||
cmake_minimum_required(VERSION 3.25)
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0110 NEW) # requires CMake 3.19
|
||||
|
||||
if(BUILDCORE_TARGET STREQUAL "gba")
|
||||
@@ -52,7 +52,7 @@ if(NOT BUILDCORE_TARGET STREQUAL "gba")
|
||||
set(GLFW_BUILD_TESTS OFF)
|
||||
set(GLFW_BUILD_DOCS OFF)
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||
set(GLFW_BUILD_WAYLAND OFF)
|
||||
set(GLFW_BUILD_WAYLAND ON)
|
||||
endif()
|
||||
add_subdirectory(deps/glfw)
|
||||
add_subdirectory(deps/glutils)
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ constexpr StringView substr(StringViewCR str, std::size_t const start, std::size
|
||||
|
||||
[[nodiscard]]
|
||||
constexpr char toUpper(char const c) noexcept {
|
||||
return c & 0b1101'1111;
|
||||
return c & static_cast<char>(0b1101'1111);
|
||||
}
|
||||
|
||||
[[nodiscard]]
|
||||
|
||||
@@ -54,6 +54,10 @@ struct VectorAllocator {
|
||||
// this totally idiotic redundant check (&& count <= Size) is required to address a bug in devkitARM,
|
||||
// try removing it later
|
||||
if (!std::is_constant_evaluated()) {
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstringop-overflow="
|
||||
#endif
|
||||
if (cap <= m_data.size() && count <= m_data.size()) {
|
||||
for (auto i = 0u; i < count; ++i) {
|
||||
auto const srcItem = std::launder(reinterpret_cast<T*>(&src->m_data[i]));
|
||||
@@ -65,6 +69,9 @@ struct VectorAllocator {
|
||||
*items = reinterpret_cast<T*>(m_data.data());
|
||||
}
|
||||
}
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user