Fix a few compiler warnings

This commit is contained in:
Pavel Krajcevski 2014-03-23 17:48:17 -04:00
parent 5725220ba6
commit aba347778e
4 changed files with 3 additions and 5 deletions

View File

@ -97,7 +97,6 @@ static T max(const T &a, const T &b) {
} }
#endif #endif
static const double kPi = 3.141592653589793238462643383279502884197;
static const float kFloatConversion[256] = { 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, 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, 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,

View File

@ -125,8 +125,6 @@ class ThreadGroup {
EThreadState m_ThreadState; EThreadState m_ThreadState;
bool m_ExitFlag; bool m_ExitFlag;
std::ostream *m_LogStream;
}; };
#endif // _THREAD_GROUP_H_ #endif // _THREAD_GROUP_H_

View File

@ -86,7 +86,6 @@ public:
static const unsigned int kMaxFilenameSz = 256; static const unsigned int kMaxFilenameSz = 256;
char m_Filename[kMaxFilenameSz]; char m_Filename[kMaxFilenameSz];
unsigned int m_Handle;
unsigned int m_Width; unsigned int m_Width;
unsigned int m_Height; unsigned int m_Height;

View File

@ -241,7 +241,8 @@ EImageFileFormat ImageFile::DetectFileFormat(const CHAR *filename) {
size_t len = strlen(filename); size_t len = strlen(filename);
if(len >= 256) { if(len >= 256) {
// !FIXME! Report Error... assert(false);
ReportError("Filename too long!");
return kNumImageFileFormats; return kNumImageFileFormats;
} }
@ -249,6 +250,7 @@ EImageFileFormat ImageFile::DetectFileFormat(const CHAR *filename) {
while((dotPos >= len)? false : filename[dotPos--] != '.'); while((dotPos >= len)? false : filename[dotPos--] != '.');
if (dotPos >= len) { if (dotPos >= len) {
assert(!"Malformed filename... no .ext");
return kNumImageFileFormats; return kNumImageFileFormats;
} }