Skip to content

Commit

Permalink
Suppress Clang's warning on zero as a null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Mário Feroldi authored and vitaut committed Sep 17, 2017
1 parent 1658953 commit 5de459b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fmt/format.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5de459b

Please sign in to comment.