mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Fixed a couple of compiler warnings in minor branch
--HG-- branch : minor
This commit is contained in:
@@ -265,6 +265,7 @@ namespace opengl
|
|||||||
bool Font::loadVolatile()
|
bool Font::loadVolatile()
|
||||||
{
|
{
|
||||||
createTexture();
|
createTexture();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Font::unloadVolatile()
|
void Font::unloadVolatile()
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ namespace sdl
|
|||||||
}
|
}
|
||||||
|
|
||||||
ThreadData::ThreadData(const char *name, size_t len, const char *code, void *mutex, void *cond)
|
ThreadData::ThreadData(const char *name, size_t len, const char *code, void *mutex, void *cond)
|
||||||
: mutex(mutex), cond(cond), len(len)
|
: len(len), mutex(mutex), cond(cond)
|
||||||
{
|
{
|
||||||
this->name = new char[len+1];
|
this->name = new char[len+1];
|
||||||
memset(this->name, 0, len+1);
|
memset(this->name, 0, len+1);
|
||||||
|
|||||||
@@ -285,7 +285,6 @@ namespace sdl
|
|||||||
luax_convobj(L, 2, "filesystem", "newFile");
|
luax_convobj(L, 2, "filesystem", "newFile");
|
||||||
if (luax_istype(L, 2, FILESYSTEM_FILE_T))
|
if (luax_istype(L, 2, FILESYSTEM_FILE_T))
|
||||||
{
|
{
|
||||||
Data * d;
|
|
||||||
try {
|
try {
|
||||||
data = luax_checktype<love::filesystem::File>(L, 2, "File", FILESYSTEM_FILE_T)->read();
|
data = luax_checktype<love::filesystem::File>(L, 2, "File", FILESYSTEM_FILE_T)->read();
|
||||||
} catch (love::Exception & e) {
|
} catch (love::Exception & e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user