Fix some compile warnings in taglib

This commit is contained in:
Jonas Kvinge 2020-04-23 21:51:14 +02:00
parent 49e2615d14
commit 8a5d5ad952
3 changed files with 6 additions and 6 deletions

View File

@ -60,9 +60,9 @@ bool Mod::FileBase::readString(String &s, unsigned long size)
return true; return true;
} }
void Mod::FileBase::writeByte(unsigned char byte) void Mod::FileBase::writeByte(unsigned char _byte)
{ {
ByteVector data(1, byte); ByteVector data(1, _byte);
writeBlock(data); writeBlock(data);
} }
@ -86,11 +86,11 @@ void Mod::FileBase::writeU32B(unsigned long number)
writeBlock(ByteVector::fromUInt(number, true)); writeBlock(ByteVector::fromUInt(number, true));
} }
bool Mod::FileBase::readByte(unsigned char &byte) bool Mod::FileBase::readByte(unsigned char &_byte)
{ {
ByteVector data(readBlock(1)); ByteVector data(readBlock(1));
if(data.size() < 1) return false; if(data.size() < 1) return false;
byte = data[0]; _byte = data[0];
return true; return true;
} }

View File

@ -58,7 +58,7 @@ namespace
#endif #endif
} }
FileHandle openFile(const int fileDescriptor, bool readOnly) FileHandle openFile(const int, bool)
{ {
return InvalidFileHandle; return InvalidFileHandle;
} }

View File

@ -151,7 +151,7 @@ private:
class ByteReader : public ValueReader<unsigned char> class ByteReader : public ValueReader<unsigned char>
{ {
public: public:
explicit ByteReader(unsigned char &byte) : ValueReader<unsigned char>(byte) {} explicit ByteReader(unsigned char &_byte) : ValueReader<unsigned char>(_byte) {}
unsigned int read(Strawberry_TagLib::TagLib::File &file, unsigned int limit) unsigned int read(Strawberry_TagLib::TagLib::File &file, unsigned int limit)
{ {