summaryrefslogtreecommitdiffstats
path: root/Source/cmELF.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-05-13 14:34:24 (GMT)
committerBrad King <brad.king@kitware.com>2008-05-13 14:34:24 (GMT)
commit9eee4149ec6e2e69de52c81f7898c993eaa259f2 (patch)
treeecdde5da6db16bc04b1caf1a19c833f1975cb2fd /Source/cmELF.cxx
parentd707719d577675e7f870d79589c97952607c8040 (diff)
downloadCMake-9eee4149ec6e2e69de52c81f7898c993eaa259f2.zip
CMake-9eee4149ec6e2e69de52c81f7898c993eaa259f2.tar.gz
CMake-9eee4149ec6e2e69de52c81f7898c993eaa259f2.tar.bz2
BUG: When byte order is not known at compile time make sure NeedSwap in cmELF is still initialized.
Diffstat (limited to 'Source/cmELF.cxx')
-rw-r--r--Source/cmELF.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmELF.cxx b/Source/cmELF.cxx
index cdba467..083470c 100644
--- a/Source/cmELF.cxx
+++ b/Source/cmELF.cxx
@@ -85,6 +85,8 @@ public:
this->NeedSwap = (this->ByteOrder == ByteOrderMSB);
#elif cmsys_CPU_ENDIAN_ID == cmsys_CPU_ENDIAN_ID_BIG
this->NeedSwap = (this->ByteOrder == ByteOrderLSB);
+#else
+ this->NeedSwap = false; // Final decision is at runtime anyway.
#endif
// We have not yet loaded the section info.