diff --git a/BPTCEncoder/src/RGBAEndpoints.cpp b/BPTCEncoder/src/RGBAEndpoints.cpp index a2d5bef..e21abbb 100755 --- a/BPTCEncoder/src/RGBAEndpoints.cpp +++ b/BPTCEncoder/src/RGBAEndpoints.cpp @@ -97,8 +97,6 @@ static T max(const T &a, const T &b) { } #endif -static const double kPi = 3.141592653589793238462643383279502884197; - /////////////////////////////////////////////////////////////////////////////// // // Static helper functions diff --git a/Base/test/TestVector.cpp b/Base/test/TestVector.cpp index b550751..e66b660 100644 --- a/Base/test/TestVector.cpp +++ b/Base/test/TestVector.cpp @@ -64,7 +64,7 @@ TEST(VectorBase, Constructors) { for(int i = 0; i < 7; i++) v7i[i] = -i; FasTC::VectorBase v16u; - for(int i = 0; i < 7; i++) + for(int i = 0; i < 16; i++) v16u[i] = i; #define TEST_VECTOR_COPY_CONS(v, t, n) \ diff --git a/Core/src/ThreadGroup.h b/Core/src/ThreadGroup.h index 8c4a79b..3956444 100644 --- a/Core/src/ThreadGroup.h +++ b/Core/src/ThreadGroup.h @@ -125,8 +125,6 @@ class ThreadGroup { EThreadState m_ThreadState; bool m_ExitFlag; - - std::ostream *m_LogStream; }; #endif // _THREAD_GROUP_H_ diff --git a/Core/src/ThreadPThread.cpp b/Core/src/ThreadPThread.cpp index e55da1c..de7b871 100644 --- a/Core/src/ThreadPThread.cpp +++ b/Core/src/ThreadPThread.cpp @@ -140,6 +140,8 @@ void TCThread::Yield() { uint64 TCThread::ThreadID() { #ifdef __MINGW32__ return static_cast(pthread_self().x); +#elif defined __APPLE__ + return reinterpret_cast(pthread_self()); #else return static_cast(pthread_self()); #endif diff --git a/IO/include/ImageFile.h b/IO/include/ImageFile.h index 2b7e01c..033f51b 100644 --- a/IO/include/ImageFile.h +++ b/IO/include/ImageFile.h @@ -86,7 +86,6 @@ public: static const unsigned int kMaxFilenameSz = 256; char m_Filename[kMaxFilenameSz]; - unsigned int m_Handle; unsigned int m_Width; unsigned int m_Height; diff --git a/IO/src/ImageFile.cpp b/IO/src/ImageFile.cpp index 1fe183b..a8619fd 100644 --- a/IO/src/ImageFile.cpp +++ b/IO/src/ImageFile.cpp @@ -241,7 +241,8 @@ EImageFileFormat ImageFile::DetectFileFormat(const CHAR *filename) { size_t len = strlen(filename); if(len >= 256) { - // !FIXME! Report Error... + assert(false); + ReportError("Filename too long!"); return kNumImageFileFormats; } @@ -249,6 +250,7 @@ EImageFileFormat ImageFile::DetectFileFormat(const CHAR *filename) { while((dotPos >= len)? false : filename[dotPos--] != '.'); if (dotPos >= len) { + assert(!"Malformed filename... no .ext"); return kNumImageFileFormats; } diff --git a/IO/src/ImageLoaderKTX.cpp b/IO/src/ImageLoaderKTX.cpp index 4e05201..20ddc34 100644 --- a/IO/src/ImageLoaderKTX.cpp +++ b/IO/src/ImageLoaderKTX.cpp @@ -216,7 +216,7 @@ bool ImageLoaderKTX::ReadData() { memcpy(keyValueData, rdr.GetData(), keyAndValueByteSize); const char *key = reinterpret_cast((const uint8 *)keyValueData); const char *value = key; - while(value != '\0') { + while(*value != '\0') { value++; } value++; // consume the null byte