mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-13 09:36:32 +00:00
Suppress Clang's warning on zero as a null pointer
This commit is contained in:
parent
2f13d41e30
commit
92a250fdb6
@ -107,7 +107,7 @@ typedef void (*FormatFunc)(internal::buffer &, int, string_view);
|
|||||||
// Buffer should be at least of size 1.
|
// Buffer should be at least of size 1.
|
||||||
int safe_strerror(
|
int safe_strerror(
|
||||||
int error_code, char *&buffer, std::size_t buffer_size) FMT_NOEXCEPT {
|
int error_code, char *&buffer, std::size_t buffer_size) FMT_NOEXCEPT {
|
||||||
FMT_ASSERT(buffer != 0 && buffer_size != 0, "invalid buffer");
|
FMT_ASSERT(buffer != FMT_NULL && buffer_size != 0, "invalid buffer");
|
||||||
|
|
||||||
class StrError {
|
class StrError {
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user