1
0

Fix Quantum Painter compiliation issues with heavy optimization (#24667)

This commit is contained in:
Drashna Jaelre
2024-12-01 21:58:18 -08:00
committed by GitHub
parent fa96609e0b
commit b599c78548
2 changed files with 7 additions and 7 deletions

View File

@@ -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;
}