Skip to content

Commit

Permalink
Fix -Os compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
rasky committed Dec 6, 2023
1 parent 0ffd5e6 commit 9b980cb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/GL/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ void glCopyMatrixN64(GLenum source)

default:
gl_set_error(GL_INVALID_ENUM, "%#04lx is not a valid matrix source for copying matrices", source);
break;
return;
}
memcpy(state.current_matrix, gl_matrix_stack_get_matrix(matrix_stack), sizeof(gl_matrix_t));
gl_mark_matrix_target_dirty();
Expand Down
2 changes: 1 addition & 1 deletion src/compress/shrinkler_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void* decompress_shrinkler_full(const char *fn, FILE *fp, size_t cmp_size, size_

void *out = malloc(size);
if (!out) return 0;
int dec_size = shr_unpack(out, in);
int dec_size = shr_unpack(out, in); (void)dec_size;
assertf(dec_size == size, "Shrinkler size:%d exp:%d", dec_size, size);
free(in);
return out;
Expand Down
2 changes: 2 additions & 0 deletions src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,3 +421,5 @@ float display_get_fps(void)
if (!frame_times_duration) return 0;
return (float)(FPS_WINDOW * TICKS_PER_SECOND) / frame_times_duration;
}

extern inline void vi_write_config(const vi_config_t* config);
2 changes: 1 addition & 1 deletion src/joypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ static void joypad_gcn_controller_rumble_toggle(joypad_port_t port, bool active)
{
// Set rumble active flag on cached GameCube controller read command
const size_t cmd_offset = joypad_read_input_offsets[port];
const size_t send_len_offset = cmd_offset + JOYBUS_COMMAND_OFFSET_SEND_LEN;
const size_t send_len_offset = cmd_offset + JOYBUS_COMMAND_OFFSET_SEND_LEN; (void)send_len_offset;
joybus_cmd_gcn_controller_read_port_t *cmd;
assert(joypad_read_input[send_len_offset] == sizeof(cmd->send));
cmd = (void *)&joypad_read_input[cmd_offset + JOYBUS_COMMAND_METADATA_SIZE];
Expand Down

0 comments on commit 9b980cb

Please sign in to comment.