From 5de459bf33af04acc91678cb18822d104dec3a91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rio=20Feroldi?= Date: Sat, 16 Sep 2017 20:06:47 -0300 Subject: [PATCH] Suppress Clang's warning on zero as a null pointer --- fmt/format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmt/format.cc b/fmt/format.cc index afd28fa9..4b7c2d24 100644 --- a/fmt/format.cc +++ b/fmt/format.cc @@ -121,7 +121,7 @@ typedef void (*FormatFunc)(Writer &, int, StringRef); // Buffer should be at least of size 1. int safe_strerror( 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 { private: