Skip to content

Commit

Permalink
Ensure plane2_component is initialized to keep SA happy
Browse files Browse the repository at this point in the history
This is not a bug; the field is never dereferenced for the block
mode used, but ensuring it is initialized keeps static analysis
happy ...
  • Loading branch information
solidpixel committed Jun 3, 2021
1 parent e08a5d8 commit ee90371
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/astcenc_compress_symbolic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ static float compress_symbolic_block_for_partition_1plane(
// Store header fields
workscb.partition_count = partition_count;
workscb.partition_index = partition_index;
workscb.plane2_component = -1;
workscb.quant_mode = workscb.color_formats_matched ? color_quant_level_mod[i] : color_quant_level[i];
workscb.block_mode = qw_bm.mode_index;
workscb.block_type = SYM_BTYPE_NONCONST;
Expand Down

0 comments on commit ee90371

Please sign in to comment.