avoid zero-as-null-pointer warning (#7423)

Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
sssooonnnggg
2022-08-09 12:32:13 +08:00
committed by GitHub
parent 966362e074
commit 7798be3bb6
13 changed files with 15 additions and 15 deletions

View File

@@ -51,10 +51,10 @@ int CloseTestEngine(bool force_report = false);
// Write captured state to a log and terminate test run.
void TestFail(const char *expval, const char *val, const char *exp,
const char *file, int line, const char *func = 0);
const char *file, int line, const char *func = nullptr);
void TestEqStr(const char *expval, const char *val, const char *exp,
const char *file, int line, const char *func = 0);
const char *file, int line, const char *func = nullptr);
// Workaround for `enum class` printing.
// There is an issue with the printing of enums with a fixed underlying type.