diff --git a/SystemInformation.cxx b/SystemInformation.cxx index 2a5555b4262018f60c17dd7a72d120ca56eca270..d294f2ac7e96443df91abacf3c74f95127ca733d 100644 --- a/SystemInformation.cxx +++ b/SystemInformation.cxx @@ -799,8 +799,6 @@ void SystemInformationImplementation::Delay(unsigned int uiMS) bool SystemInformationImplementation::DoesCPUSupportCPUID() { - int CPUIDPresent = 0; - #if USE_ASM_INSTRUCTIONS // Use SEH to determine CPUID presence __try { @@ -829,15 +827,15 @@ bool SystemInformationImplementation::DoesCPUSupportCPUID() __except(1) { // Stop the class from trying to use CPUID again! - CPUIDPresent = false; return false; } + + // The cpuid instruction succeeded. + return true; #else - CPUIDPresent = false; + // Assume no cpuid instruction. + return false; #endif - - // Return true to indicate support or false to indicate lack. - return (CPUIDPresent == 0) ? true : false; } bool SystemInformationImplementation::RetrieveCPUFeatures() @@ -2586,13 +2584,13 @@ int SystemInformationImplementation::CPUCount() // number of logical processors. unsigned int i = 1; unsigned char PHY_ID_MASK = 0xFF; - unsigned char PHY_ID_SHIFT = 0; + //unsigned char PHY_ID_SHIFT = 0; while (i < this->NumberOfLogicalCPU) { i *= 2; PHY_ID_MASK <<= 1; - PHY_ID_SHIFT++; + // PHY_ID_SHIFT++; } hCurrentProcessHandle = GetCurrentProcess(); @@ -2922,7 +2920,7 @@ bool SystemInformationImplementation::QueryOSInformation() OSVERSIONINFOEX osvi; BOOL bIsWindows64Bit; BOOL bOsVersionInfoEx; - char * operatingSystem = new char [256]; + char operatingSystem[256]; // Try calling GetVersionEx using the OSVERSIONINFOEX structure. ZeroMemory (&osvi, sizeof (OSVERSIONINFOEX)); @@ -3117,8 +3115,6 @@ bool SystemInformationImplementation::QueryOSInformation() this->OSRelease = "Unknown"; break; } - delete [] operatingSystem; - operatingSystem = 0; // Get the hostname WORD wVersionRequested; diff --git a/kwsysDateStamp.cmake b/kwsysDateStamp.cmake index 2268c160c799384d1868358ee486619572bc6a8c..60dbef14555f6c42f66e60cc3562d268effaa44b 100644 --- a/kwsysDateStamp.cmake +++ b/kwsysDateStamp.cmake @@ -4,7 +4,7 @@ SET(KWSYS_DATE_STAMP_YEAR 2008) # KWSys version date month component. Format is MM. -SET(KWSYS_DATE_STAMP_MONTH 04) +SET(KWSYS_DATE_STAMP_MONTH 05) # KWSys version date day component. Format is DD. -SET(KWSYS_DATE_STAMP_DAY 30) +SET(KWSYS_DATE_STAMP_DAY 02)