fix warnings

This commit is contained in:
Andrei Alexeyev 2019-04-06 21:27:39 +03:00
parent d05916ba50
commit 649ef31ce5
No known key found for this signature in database
GPG key ID: 363707CD4C7FE8A4
3 changed files with 4 additions and 3 deletions

View file

@ -91,7 +91,7 @@ static void musicroom_draw_item(MenuEntry *e, int i, int cnt) {
return;
}
char buf[8];
char buf[16];
const char *title = p->state & MSTATE_TITLE_VISIBLE ? e->name : "???????";
Color clr = *r_color_current();
TextParams tparams = {

View file

@ -102,6 +102,8 @@ static int64_t ziprw_seek_emulated(SDL_RWops *rw, int64_t offset, int whence) {
new_pos = sz - offset;
break;
default: UNREACHABLE;
}
if(new_pos < 0 || new_pos > sz) {

View file

@ -612,9 +612,8 @@ void stage_finish(int gameover) {
if(p) {
++p->num_cleared;
log_debug("Stage cleared %u times now", p->num_cleared);
}
log_debug("Stage cleared %u times now", p->num_cleared);
}
}