diff options
author | Drashna Jaelre <[email protected]> | 2024-12-01 21:58:18 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-02 16:58:18 +1100 |
commit | b599c785483c82236d1e8a61e3e8deefac14422f (patch) | |
tree | 13a7a5fa6a8ef500db5a905084aa188f604bb46b | |
parent | fa96609e0b7238ca2da5dd2e74b5bf412934e7c8 (diff) | |
download | qmk_firmware-b599c785483c82236d1e8a61e3e8deefac14422f.tar.gz qmk_firmware-b599c785483c82236d1e8a61e3e8deefac14422f.zip |
Fix Quantum Painter compiliation issues with heavy optimization (#24667)
-rw-r--r-- | quantum/painter/qgf.c | 8 | ||||
-rw-r--r-- | quantum/painter/qp_draw_image.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/quantum/painter/qgf.c b/quantum/painter/qgf.c index bc2df94933..07c3f80314 100644 --- a/quantum/painter/qgf.c +++ b/quantum/painter/qgf.c @@ -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; } diff --git a/quantum/painter/qp_draw_image.c b/quantum/painter/qp_draw_image.c index 18fa38cb19..a225039af4 100644 --- a/quantum/painter/qp_draw_image.c +++ b/quantum/painter/qp_draw_image.c @@ -318,9 +318,9 @@ 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; - bool ret = qp_render_animation_state(state, &delay_ms); + animation_state_t *state = (animation_state_t *)cb_arg; + 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 state->device = NULL; |