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

@@ -40,8 +40,8 @@ void InitTestEngine(TestFailEventListener listener) {
testing_fails = 0;
// Disable stdout buffering to prevent information lost on assertion or core
// dump.
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stderr, NULL, _IONBF, 0);
setvbuf(stdout, nullptr, _IONBF, 0);
setvbuf(stderr, nullptr, _IONBF, 0);
flatbuffers::SetupDefaultCRTReportMode();