mirror of
https://github.com/sheumann/hush.git
synced 2024-10-11 10:23:41 +00:00
unzip: hmm... gcc doesn't like ATTRIBUTE_PACKED?? Document that...
This commit is contained in:
parent
ef66d75704
commit
cd0fbb5e77
@ -57,7 +57,7 @@ typedef union {
|
|||||||
uint16_t filename_len; /* 22-23 */
|
uint16_t filename_len; /* 22-23 */
|
||||||
uint16_t extra_len; /* 24-25 */
|
uint16_t extra_len; /* 24-25 */
|
||||||
} formatted ATTRIBUTE_PACKED;
|
} formatted ATTRIBUTE_PACKED;
|
||||||
} zip_header_t ATTRIBUTE_PACKED;
|
} zip_header_t; /* ATTRIBUTE_PACKED - gcc 4.2.1 doesn't like it (spews warning) */
|
||||||
|
|
||||||
/* Check the offset of the last element, not the length. This leniency
|
/* Check the offset of the last element, not the length. This leniency
|
||||||
* allows for poor packing, whereby the overall struct may be too long,
|
* allows for poor packing, whereby the overall struct may be too long,
|
||||||
|
Loading…
Reference in New Issue
Block a user