Removed clang warnings
This commit is contained in:
parent
f3c83606e2
commit
db21bb813f
1
src/db.h
1
src/db.h
|
@ -17,3 +17,4 @@ void
|
||||||
db_close(sqlite3 **db);
|
db_close(sqlite3 **db);
|
||||||
|
|
||||||
#endif // DB_H_
|
#endif // DB_H_
|
||||||
|
|
||||||
|
|
|
@ -35,3 +35,4 @@ io_load_file_buffer(char **dest, unsigned long *len, const char *filepath)
|
||||||
*len = (unsigned long) size;
|
*len = (unsigned long) size;
|
||||||
*dest = buffer;
|
*dest = buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,3 +28,4 @@ void
|
||||||
io_load_file_buffer(char **dest, unsigned long *len, const char *filepath);
|
io_load_file_buffer(char **dest, unsigned long *len, const char *filepath);
|
||||||
|
|
||||||
#endif // IO_UTIL_H_
|
#endif // IO_UTIL_H_
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ int l_create_map(lua_State *L)
|
||||||
static int
|
static int
|
||||||
l_print_info(lua_State *L)
|
l_print_info(lua_State *L)
|
||||||
{
|
{
|
||||||
|
UNUSED(L); // Compilers keep warning about L being unused
|
||||||
debug(luaL_checkstring(L, 1));
|
debug(luaL_checkstring(L, 1));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,3 +32,4 @@ get_random(unsigned int max)
|
||||||
|
|
||||||
return rand() % (max + 1);
|
return rand() % (max + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,7 @@ sprite_render(Sprite *s, Camera *cam)
|
||||||
cameraPos.x, cameraPos.y, s->dim.width, s->dim.height
|
cameraPos.x, cameraPos.y, s->dim.width, s->dim.height
|
||||||
};
|
};
|
||||||
|
|
||||||
if ((s->clip.w && s->clip.h) || s->angle || s->flip != SDL_FLIP_NONE) {
|
if ((s->clip.w && s->clip.h) || s->angle != 0 || s->flip != SDL_FLIP_NONE) {
|
||||||
texture_render_clip_ex(s->textures[s->texture_index],
|
texture_render_clip_ex(s->textures[s->texture_index],
|
||||||
&box,
|
&box,
|
||||||
&s->clip,
|
&s->clip,
|
||||||
|
|
|
@ -35,3 +35,4 @@ void
|
||||||
texturecache_close(void);
|
texturecache_close(void);
|
||||||
|
|
||||||
#endif // TEXTURECACHE_H_
|
#endif // TEXTURECACHE_H_
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue