mirror of https://github.com/mgba-emu/mgba.git
All: Fix warnings
This commit is contained in:
parent
e67bf2fd42
commit
e70df7b6f7
|
@ -154,7 +154,7 @@ int utfcmp(const uint16_t* utf16, const char* utf8, size_t utf16Length, size_t u
|
||||||
|
|
||||||
char* utf16to8(const uint16_t* utf16, size_t length) {
|
char* utf16to8(const uint16_t* utf16, size_t length) {
|
||||||
char* utf8 = 0;
|
char* utf8 = 0;
|
||||||
char* offset;
|
char* offset = 0;
|
||||||
char buffer[4];
|
char buffer[4];
|
||||||
size_t utf8TotalBytes = 0;
|
size_t utf8TotalBytes = 0;
|
||||||
size_t utf8Length = 0;
|
size_t utf8Length = 0;
|
||||||
|
|
|
@ -148,9 +148,6 @@ off_t _vf7zSeek(struct VFile* vf, off_t offset, int whence) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (position <= vf7z->size) {
|
if (position <= vf7z->size) {
|
||||||
if (read < 0) {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
return vf7z->offset;
|
return vf7z->offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue