From 9eee4149ec6e2e69de52c81f7898c993eaa259f2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 13 May 2008 10:34:24 -0400 Subject: BUG: When byte order is not known at compile time make sure NeedSwap in cmELF is still initialized. --- Source/cmELF.cxx | 2 ++ 1 file changed, 2 insertions(+) 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. -- cgit v0.12