Skip to content

Commit 552609c

Browse files
committed
qcow2_helper: Fix bound array warning
This fix a warning about a mismatch between QCOW2_HEADER_SIZE and the size of qcow2_header structure. Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@vates.tech>
1 parent eac451e commit 552609c

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

qcow2/qcow_helper.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ struct qcow2_header {
3737

3838
uint32_t refcount_order;
3939
uint32_t header_length;
40-
41-
/* Additional fields */
42-
uint8_t compression_type;
43-
44-
/* header must be a multiple of 8 */
45-
uint8_t padding[7];
4640
} __attribute__((packed));
4741

4842
#define SWAP_BE_TO_LE(size, x) \

0 commit comments

Comments
 (0)