summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemInformation.cxx
diff options
context:
space:
mode:
authorBill Lorensen <lorensen@crd.ge.com>2008-05-11 02:48:53 (GMT)
committerBill Lorensen <lorensen@crd.ge.com>2008-05-11 02:48:53 (GMT)
commit68dfcefbcb755018ddadfa8bf132114a1b3fa28c (patch)
treeec2603b6260154bb983ada7940bfdde838725087 /Source/kwsys/SystemInformation.cxx
parentb837ade9445ff74a5b59239eaa2a65b97256b426 (diff)
downloadCMake-68dfcefbcb755018ddadfa8bf132114a1b3fa28c.zip
CMake-68dfcefbcb755018ddadfa8bf132114a1b3fa28c.tar.gz
CMake-68dfcefbcb755018ddadfa8bf132114a1b3fa28c.tar.bz2
COMP: sprintf warnings. DWORD should use %ld rather than %d. Also, const char *p, a shadowed variable warning.
Diffstat (limited to 'Source/kwsys/SystemInformation.cxx')
-rw-r--r--Source/kwsys/SystemInformation.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx
index ee762c7..058fddd 100644
--- a/Source/kwsys/SystemInformation.cxx
+++ b/Source/kwsys/SystemInformation.cxx
@@ -2998,7 +2998,7 @@ bool SystemInformationImplementation::QueryOSInformation()
}
}
- sprintf (operatingSystem, "%s(Build %d)", osvi.szCSDVersion, osvi.dwBuildNumber & 0xFFFF);
+ sprintf (operatingSystem, "%s(Build %ld)", osvi.szCSDVersion, osvi.dwBuildNumber & 0xFFFF);
this->OSVersion = operatingSystem;
}
else
@@ -3047,7 +3047,7 @@ bool SystemInformationImplementation::QueryOSInformation()
if (osvi.dwMajorVersion <= 4)
{
// NB: NT 4.0 and earlier.
- sprintf (operatingSystem, "version %d.%d %s (Build %d)",
+ sprintf (operatingSystem, "version %ld.%ld %s (Build %ld)",
osvi.dwMajorVersion,
osvi.dwMinorVersion,
osvi.szCSDVersion,
@@ -3078,7 +3078,7 @@ bool SystemInformationImplementation::QueryOSInformation()
else
{
// Windows 2000 and everything else.
- sprintf (operatingSystem,"%s(Build %d)", osvi.szCSDVersion, osvi.dwBuildNumber & 0xFFFF);
+ sprintf (operatingSystem,"%s(Build %ld)", osvi.szCSDVersion, osvi.dwBuildNumber & 0xFFFF);
this->OSVersion = operatingSystem;
}
break;