summaryrefslogtreecommitdiff
path: root/Source/cmELF.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-05-13 10:34:24 -0400
committerBrad King <brad.king@kitware.com>2008-05-13 10:34:24 -0400
commit9eee4149ec6e2e69de52c81f7898c993eaa259f2 (patch)
treeecdde5da6db16bc04b1caf1a19c833f1975cb2fd /Source/cmELF.cxx
parentd707719d577675e7f870d79589c97952607c8040 (diff)
downloadcmake-9eee4149ec6e2e69de52c81f7898c993eaa259f2.tar.gz
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 cdba467c66..083470c637 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.