diff options
author | Brad King <brad.king@kitware.com> | 2008-05-13 10:34:24 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-05-13 10:34:24 -0400 |
commit | 9eee4149ec6e2e69de52c81f7898c993eaa259f2 (patch) | |
tree | ecdde5da6db16bc04b1caf1a19c833f1975cb2fd /Source/cmELF.cxx | |
parent | d707719d577675e7f870d79589c97952607c8040 (diff) | |
download | cmake-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.cxx | 2 |
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. |