mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:12:53 +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() {
|
void WINInstance::enumerateCpu() {
|
||||||
json cpu = {};
|
json cpu = {};
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef Q_OS_WINDOWS
|
||||||
int CPUInfo[4] = { -1 };
|
int CPUInfo[4] = { -1 };
|
||||||
unsigned nExIds;
|
unsigned nExIds;
|
||||||
unsigned int i = 0;
|
unsigned int i = 0;
|
||||||
char CPUBrandString[16];
|
char CPUBrandString[16];
|
||||||
char CPUModelString[16];
|
char CPUModelString[16];
|
||||||
char CPUClockString[16];
|
char CPUClockString[16];
|
||||||
|
|
||||||
#ifdef Q_OS_WINDOWS
|
|
||||||
// Get the information associated with each extended ID.
|
// Get the information associated with each extended ID.
|
||||||
__cpuid(CPUInfo, 0x80000000);
|
__cpuid(CPUInfo, 0x80000000);
|
||||||
nExIds = CPUInfo[0];
|
nExIds = CPUInfo[0];
|
||||||
|
|
|
@ -19,16 +19,16 @@ class Instance {
|
||||||
public:
|
public:
|
||||||
bool virtual enumeratePlatform() = 0;
|
bool virtual enumeratePlatform() = 0;
|
||||||
|
|
||||||
int getNumCPU() { return _cpu.size(); }
|
int getNumCPU() { return (int)_cpu.size(); }
|
||||||
json getCPU(int index);
|
json getCPU(int index);
|
||||||
|
|
||||||
int getNumGPU() { return _gpu.size(); }
|
int getNumGPU() { return (int)_gpu.size(); }
|
||||||
json getGPU(int index);
|
json getGPU(int index);
|
||||||
|
|
||||||
int getNumMemory() { return _memory.size(); }
|
int getNumMemory() { return (int)_memory.size(); }
|
||||||
json getMemory(int index);
|
json getMemory(int index);
|
||||||
|
|
||||||
int getNumDisplay() { return _display.size(); }
|
int getNumDisplay() { return (int)_display.size(); }
|
||||||
json getDisplay(int index);
|
json getDisplay(int index);
|
||||||
|
|
||||||
virtual ~Instance();
|
virtual ~Instance();
|
||||||
|
|
Loading…
Reference in a new issue