Fix gcc11 warnings

This commit is contained in:
Andrei Alexeyev 2021-07-18 19:09:12 +03:00
parent 5b5767a67a
commit 9666bae1bc
No known key found for this signature in database
GPG key ID: 72D26128040B9690
4 changed files with 1 additions and 6 deletions

View file

@ -356,8 +356,6 @@ void delete_projectiles(ProjectileList *projlist) {
}
void calc_projectile_collision(Projectile *p, ProjCollisionResult *out_col) {
assert(out_col != NULL);
out_col->type = PCOL_NONE;
out_col->entity = NULL;
out_col->fatal = false;

View file

@ -429,7 +429,7 @@ static void gl33_sync_magic_uniforms(void) {
r_uniform_mat4(u[UMAGIC_MATRIX_PROJ], *_r_matrices.projection.head);
r_uniform_mat4(u[UMAGIC_MATRIX_TEX], *_r_matrices.texture.head);
r_uniform_vec4_rgba(u[UMAGIC_COLOR], &R.color);
r_uniform_vec4_vec(u[UMAGIC_VIEWPORT], &R.viewport.active.x);
r_uniform_vec4_vec(u[UMAGIC_VIEWPORT], (float*)&R.viewport.active);
int num_color_out;

View file

@ -121,7 +121,6 @@ bool replay_load_syspath(Replay *rpy, const char *path, ReplayReadMode mode) {
}
int replay_find_stage_idx(Replay *rpy, uint8_t stageid) {
assert(rpy != NULL);
assert(rpy->stages != NULL);
for(int i = 0; i < rpy->numstages; ++i) {

View file

@ -74,8 +74,6 @@ void replay_stage_sync_player_state(ReplayStage *stg, Player *plr) {
}
void replay_stage_event(ReplayStage *stg, uint32_t frame, uint8_t type, uint16_t value) {
assert(stg != NULL);
dynarray_size_t old_capacity = stg->events.capacity;
ReplayEvent *e = dynarray_append(&stg->events);