Skip to content

Commit

Permalink
🧹 (icu_lib/endecoder/lvgl): add unused attribute to reserved field
Browse files Browse the repository at this point in the history
Added the `#[allow(unused)]` attribute to the `reserved` field in `ImageCompressedHeader` to suppress warnings about its usage.

Signed-off-by: Benign X <[email protected]>
  • Loading branch information
W-Mai committed Nov 26, 2024
1 parent 1996dfa commit d710a94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions icu_lib/src/endecoder/lvgl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ pub enum Compress {
#[repr(C, packed)]
struct ImageCompressedHeader {
method: Compress, /*Compression method, see `lv_image_compress_t`*/

#[allow(unused)]
reserved: B28, /*Reserved to be used later*/
compressed_size: u32, /*Compressed data size in byte*/
decompressed_size: u32, /*Decompressed data size in byte*/
Expand Down

0 comments on commit d710a94

Please sign in to comment.