diff --git a/BPTCEncoder/src/RGBAEndpoints.cpp b/BPTCEncoder/src/RGBAEndpoints.cpp index f293ff1..54f34d6 100755 --- a/BPTCEncoder/src/RGBAEndpoints.cpp +++ b/BPTCEncoder/src/RGBAEndpoints.cpp @@ -97,7 +97,6 @@ static T max(const T &a, const T &b) { } #endif -static const double kPi = 3.141592653589793238462643383279502884197; static const float kFloatConversion[256] = { 0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f, 13.0f, 14.0f, 15.0f, 16.0f, 17.0f, 18.0f, 19.0f, 20.0f, 21.0f, 22.0f, 23.0f, 24.0f, 25.0f, 26.0f, 27.0f, 28.0f, 29.0f, 30.0f, 31.0f, 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/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; }