mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-27 20:14:18 +01:00
Fix a few compiler warnings
This commit is contained in:
parent
5725220ba6
commit
aba347778e
@ -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,
|
||||
|
@ -125,8 +125,6 @@ class ThreadGroup {
|
||||
|
||||
EThreadState m_ThreadState;
|
||||
bool m_ExitFlag;
|
||||
|
||||
std::ostream *m_LogStream;
|
||||
};
|
||||
|
||||
#endif // _THREAD_GROUP_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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user