Warning removals in test code (#2399)

* Warning removals in test code.

Mostly 0 to nullptr and adding override to virtual function implementations.

* Fix module-test.
This commit is contained in:
mwinterb
2021-07-09 08:05:02 -07:00
committed by GitHub
parent 20e4ef8b4c
commit 3d53d1539d
5 changed files with 22 additions and 19 deletions

View File

@ -34,7 +34,7 @@ fmt::buffered_file open_buffered_file(FILE** fp = nullptr);
inline FILE* safe_fopen(const char* filename, const char* mode) {
#if defined(_WIN32) && !defined(__MINGW32__)
// Fix MSVC warning about "unsafe" fopen.
FILE* f = 0;
FILE* f = nullptr;
errno = fopen_s(&f, filename, mode);
return f;
#else