Skip to content

Commit

Permalink
Fix compiliation issues with heavy optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Nov 6, 2024
1 parent 5f49ae2 commit b708848
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions quantum/painter/qgf.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ bool qgf_validate_stream(qp_stream_t *stream) {
// Read and validate all the frames (automatically validates the frame offset descriptor in the process)
for (uint16_t i = 0; i < frame_count; ++i) {
// Validate the frame descriptor block
uint8_t bpp;
bool has_palette;
bool is_panel_native;
bool has_delta;
uint8_t bpp = 0;
bool has_palette = false;
bool is_panel_native = false;
bool has_delta = false;
if (!qgf_validate_frame_descriptor(stream, i, &bpp, &has_palette, &is_panel_native, &has_delta)) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion quantum/painter/qp_draw_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ static deferred_token qp_render_animation_state(animation_state_t *state, uint16

static uint32_t animation_callback(uint32_t trigger_time, void *cb_arg) {
animation_state_t *state = (animation_state_t *)cb_arg;
uint16_t delay_ms;
uint16_t delay_ms = 0;
bool ret = qp_render_animation_state(state, &delay_ms);
if (!ret) {
// Setting the device to NULL clears the animation slot
Expand Down

0 comments on commit b708848

Please sign in to comment.