summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-03 13:14:38 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-03 13:14:38 (GMT)
commit8280232d0d9c732fa80a05c6691c8620b2fc7f53 (patch)
tree3108cb966e1d12ce914e252f1874679f0d5f6a7c /Source
parentb38bc438941bd8a0096bbfdfceb8599a5b3a32d6 (diff)
downloadCMake-8280232d0d9c732fa80a05c6691c8620b2fc7f53.zip
CMake-8280232d0d9c732fa80a05c6691c8620b2fc7f53.tar.gz
CMake-8280232d0d9c732fa80a05c6691c8620b2fc7f53.tar.bz2
COMP: Fix unreachable code warning. Remove runtime test of constant information.
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/SystemInformation.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx
index 73c7189..b370380 100644
--- a/Source/kwsys/SystemInformation.cxx
+++ b/Source/kwsys/SystemInformation.cxx
@@ -3154,11 +3154,7 @@ bool SystemInformationImplementation::QueryOSInformation()
/** Return true if the machine is 64 bits */
bool SystemInformationImplementation::Is64Bits()
{
- if(sizeof(long int) == 4)
- {
- return false;
- }
- return true;
+ return (sizeof(void*) == 8);
}
} // namespace @KWSYS_NAMESPACE@