Silenced some compiler warnings

This commit is contained in:
Alex Szpakowski
2013-02-09 21:24:41 -04:00
parent ef8bdb96bd
commit 668a1bfa6d
5 changed files with 15 additions and 8 deletions
+5
View File
@@ -83,6 +83,11 @@ int GlyphData::getWidth() const
return metrics.width;
}
unsigned int GlyphData::getGlyph() const
{
return glyph;
}
int GlyphData::getAdvance() const
{
return metrics.advance;
+5
View File
@@ -73,6 +73,11 @@ public:
**/
virtual int getWidth() const;
/**
* Gets the glyph itself.
**/
unsigned int getGlyph() const;
/**
* Gets the advance (the space the glyph takes up) of the glyph.
**/
+4 -4
View File
@@ -40,16 +40,16 @@ namespace box2d
{
Joint::Joint(Body *body1)
: body1(body1)
: world(body1->world)
, body1(body1)
, body2(0)
, world(body1->world)
{
}
Joint::Joint(Body *body1, Body *body2)
: body1(body1)
: world(body1->world)
, body1(body1)
, body2(body2)
, world(body1->world)
{
}
+1 -1
View File
@@ -69,7 +69,7 @@ void Thread::ThreadThread::main()
}
ThreadData::ThreadData(const char *name, size_t len, const char *code, void *mutex, void *cond)
: len(len), mutex(mutex), cond(cond)
: mutex(mutex), cond(cond), len(len)
{
this->name = new char[len+1];
memset(this->name, 0, len+1);
-3
View File
@@ -62,9 +62,6 @@ public:
private:
// Timing vars for benchmarking.
Uint32 time_init;
// Frame delta vars.
Uint32 currTime;
Uint32 prevTime;