Merge tag 'v0.22.7'
release v0.22.7
This commit is contained in:
@@ -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);
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user