Merge tag 'v0.22.7'

release v0.22.7
This commit is contained in:
Max Kellermann
2021-05-19 18:43:19 +02:00
33 changed files with 208 additions and 82 deletions

View File

@@ -77,7 +77,7 @@ void
HugeDiscard(void *p, size_t size) noexcept;
#elif defined(_WIN32)
#include <windows.h>
#include <memoryapi.h>
WritableBuffer<void>
HugeAllocate(size_t size);

View File

@@ -35,6 +35,12 @@
#include <stdio.h>
#ifdef __clang__
#pragma GCC diagnostic push
// TODO: fix this warning properly
#pragma GCC diagnostic ignored "-Wformat-security"
#endif
template<typename... Args>
static inline std::runtime_error
FormatRuntimeError(const char *fmt, Args&&... args) noexcept
@@ -53,4 +59,8 @@ FormatInvalidArgument(const char *fmt, Args&&... args) noexcept
return std::invalid_argument(buffer);
}
#ifdef __clang__
#pragma GCC diagnostic pop
#endif
#endif