mirror of
https://github.com/love2d/love.git
synced 2026-08-21 13:09:56 +02:00
Silenced some compiler warnings
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
**/
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -62,9 +62,6 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
// Timing vars for benchmarking.
|
||||
Uint32 time_init;
|
||||
|
||||
// Frame delta vars.
|
||||
Uint32 currTime;
|
||||
Uint32 prevTime;
|
||||
|
||||
Reference in New Issue
Block a user