Silence "warning: missing initializer for member '_SYSTEM_INFO::<anonymous>' [-Wmissing-field-initializers]" on mingw-gcc
This commit is contained in:
parent
02aeb79cdc
commit
d0e57e8639
2
posix.cc
2
posix.cc
@ -228,7 +228,7 @@ fmt::BufferedFile fmt::File::fdopen(const char *mode) {
|
|||||||
|
|
||||||
long fmt::getpagesize() {
|
long fmt::getpagesize() {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
SYSTEM_INFO si = {};
|
SYSTEM_INFO si;
|
||||||
GetSystemInfo(&si);
|
GetSystemInfo(&si);
|
||||||
return si.dwPageSize;
|
return si.dwPageSize;
|
||||||
#else
|
#else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user