fixed a ridiculous number of gcc warnings, nearly all of which were complaints about unused parameters - the remaining 199 warnings I get are from code that isn't ours (box2d is responsible for all but 8 of them)

This commit is contained in:
Bill Meltsner
2010-02-26 03:55:21 -05:00
parent dbf8301f24
commit 7c33786100
13 changed files with 153 additions and 142 deletions
+14 -14
View File
@@ -34,7 +34,7 @@ namespace lullaby
bool Mpg123Decoder::inited = false;
Mpg123Decoder::Mpg123Decoder(Data * data, const std::string & ext, int bufferSize, int sampleRate)
: Decoder(data, ext, bufferSize, sampleRate), channels(MPG123_STEREO), handle(0)
: Decoder(data, ext, bufferSize, sampleRate), handle(0), channels(MPG123_STEREO)
{
data_size = data->getSize();
@@ -195,17 +195,17 @@ namespace lullaby
return true;
}
int Mpg123Decoder::getChannels() const
{
return channels;
}
int Mpg123Decoder::getBits() const
{
return 16;
}
int Mpg123Decoder::feed(int bytes)
int Mpg123Decoder::getChannels() const
{
return channels;
}
int Mpg123Decoder::getBits() const
{
return 16;
}
int Mpg123Decoder::feed(int bytes)
{
int remaining = data_size - data_offset;
@@ -219,8 +219,8 @@ namespace lullaby
if(r == MPG123_OK || r == MPG123_DONE)
data_offset += feed_bytes;
return r;
}
return r;
}
} // lullaby
} // sound