Commit 95dee3c6 by Eric Fiselier

Work around bogus GCC warning

parent ee54a3f0
...@@ -253,7 +253,9 @@ void InitializeSystemInfo() { ...@@ -253,7 +253,9 @@ void InitializeSystemInfo() {
else else
cpuinfo_cycles_per_second = static_cast<double>(EstimateCyclesPerSecond()); cpuinfo_cycles_per_second = static_cast<double>(EstimateCyclesPerSecond());
SYSTEM_INFO sysinfo = {}; SYSTEM_INFO sysinfo;
// Use memset as opposed to = {} to avoid GCC missing initializer false positives.
std::memset(&sysinfo, 0, sizeof(SYSTEM_INFO));
GetSystemInfo(&sysinfo); GetSystemInfo(&sysinfo);
cpuinfo_num_cpus = sysinfo.dwNumberOfProcessors; // number of logical processors in the current group cpuinfo_num_cpus = sysinfo.dwNumberOfProcessors; // number of logical processors in the current group
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment