ENH: fix more warnings
This commit is contained in:
parent
f6826df4f3
commit
889d900ef2
|
@ -221,7 +221,7 @@ protected:
|
||||||
// For Linux
|
// For Linux
|
||||||
int RetreiveInformationFromCpuInfoFile();
|
int RetreiveInformationFromCpuInfoFile();
|
||||||
kwsys_stl::string ExtractValueFromCpuInfoFile(kwsys_stl::string buffer,
|
kwsys_stl::string ExtractValueFromCpuInfoFile(kwsys_stl::string buffer,
|
||||||
const char* word, int init=0);
|
const char* word, size_t init=0);
|
||||||
|
|
||||||
static void Delay (unsigned int);
|
static void Delay (unsigned int);
|
||||||
static void DelayOverhead (unsigned int);
|
static void DelayOverhead (unsigned int);
|
||||||
|
@ -2122,7 +2122,7 @@ bool SystemInformationImplementation::RetrieveClassicalCPUIdentity()
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Extract a value from the CPUInfo file */
|
/** Extract a value from the CPUInfo file */
|
||||||
kwsys_stl::string SystemInformationImplementation::ExtractValueFromCpuInfoFile(kwsys_stl::string buffer,const char* word,int init)
|
kwsys_stl::string SystemInformationImplementation::ExtractValueFromCpuInfoFile(kwsys_stl::string buffer,const char* word,size_t init)
|
||||||
{
|
{
|
||||||
size_t pos = buffer.find(word,init);
|
size_t pos = buffer.find(word,init);
|
||||||
if(pos != buffer.npos)
|
if(pos != buffer.npos)
|
||||||
|
|
Loading…
Reference in New Issue