summaryrefslogtreecommitdiffstats
path: root/SystemInformation.cxx
diff options
context:
space:
mode:
authorKWSys Robot <kwrobot@kitware.com>2013-01-31 13:21:49 (GMT)
committerBrad King <brad.king@kitware.com>2013-02-01 14:27:46 (GMT)
commit23ae48412093e4acbd5270536aace226d5869679 (patch)
tree9824f19802c2b88a6b1124ac0c20ba0eb4516fa1 /SystemInformation.cxx
parent4ba0ac7be4bbe38a7cb3334504e69db039288ad8 (diff)
downloadCMake-23ae48412093e4acbd5270536aace226d5869679.zip
CMake-23ae48412093e4acbd5270536aace226d5869679.tar.gz
CMake-23ae48412093e4acbd5270536aace226d5869679.tar.bz2
KWSys 2013-01-31 (5b0d1bd9)
Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 5b0d1bd9 | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' 6fa1c99f..5b0d1bd9 Alan Hourihane (2): e81e2b72 DynamicLoader: Implement on Atari FreeMINT 5c4dcb2b ProcessUNIX: No select on Atari FreeMINT Sean McBride (2): bff2ea07 Glob: Fix clang -Wdocumentation warning 5b0d1bd9 Fix clang -Weverything warnings Change-Id: I8b342bea8bc9c7b92a856ddc948e1b56f5e74b98
Diffstat (limited to 'SystemInformation.cxx')
-rw-r--r--SystemInformation.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/SystemInformation.cxx b/SystemInformation.cxx
index b20d724..f057e0f 100644
--- a/SystemInformation.cxx
+++ b/SystemInformation.cxx
@@ -2466,7 +2466,9 @@ bool SystemInformationImplementation::RetrieveCPUPowerManagement()
#endif
}
-void SystemInformationStripLeadingSpace(kwsys_stl::string& str)
+#if USE_CPUID
+// Used only in USE_CPUID implementation below.
+static void SystemInformationStripLeadingSpace(kwsys_stl::string& str)
{
// Because some manufacturers have leading white space - we have to post-process the name.
kwsys_stl::string::size_type pos = str.find_first_not_of(" ");
@@ -2475,6 +2477,7 @@ void SystemInformationStripLeadingSpace(kwsys_stl::string& str)
str = str.substr(pos);
}
}
+#endif
/** */
bool SystemInformationImplementation::RetrieveExtendedCPUIdentity()