mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 14:16:36 +02:00
fixing warnings
This commit is contained in:
parent
cbd751df89
commit
541aef5e90
2 changed files with 7 additions and 6 deletions
|
@ -29,14 +29,15 @@ bool WINInstance::enumeratePlatform() {
|
|||
|
||||
void WINInstance::enumerateCpu() {
|
||||
json cpu = {};
|
||||
|
||||
|
||||
#ifdef Q_OS_WINDOWS
|
||||
int CPUInfo[4] = { -1 };
|
||||
unsigned nExIds;
|
||||
unsigned int i = 0;
|
||||
char CPUBrandString[16];
|
||||
char CPUModelString[16];
|
||||
char CPUClockString[16];
|
||||
|
||||
#ifdef Q_OS_WINDOWS
|
||||
// Get the information associated with each extended ID.
|
||||
__cpuid(CPUInfo, 0x80000000);
|
||||
nExIds = CPUInfo[0];
|
||||
|
|
|
@ -19,16 +19,16 @@ class Instance {
|
|||
public:
|
||||
bool virtual enumeratePlatform() = 0;
|
||||
|
||||
int getNumCPU() { return _cpu.size(); }
|
||||
int getNumCPU() { return (int)_cpu.size(); }
|
||||
json getCPU(int index);
|
||||
|
||||
int getNumGPU() { return _gpu.size(); }
|
||||
int getNumGPU() { return (int)_gpu.size(); }
|
||||
json getGPU(int index);
|
||||
|
||||
int getNumMemory() { return _memory.size(); }
|
||||
int getNumMemory() { return (int)_memory.size(); }
|
||||
json getMemory(int index);
|
||||
|
||||
int getNumDisplay() { return _display.size(); }
|
||||
int getNumDisplay() { return (int)_display.size(); }
|
||||
json getDisplay(int index);
|
||||
|
||||
virtual ~Instance();
|
||||
|
|
Loading…
Reference in a new issue