projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef66d75
)
unzip: hmm... gcc doesn't like ATTRIBUTE_PACKED?? Document that...
author
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 6 Nov 2007 02:16:01 +0000
(
02:16
-0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 6 Nov 2007 02:16:01 +0000
(
02:16
-0000)
archival/unzip.c
patch
|
blob
|
history
diff --git
a/archival/unzip.c
b/archival/unzip.c
index 001f2e128b99a4df18dd15e9ab0605f552712a23..118c99bcd861b88b82bb9eec78eb82aad0a1e07a 100644
(file)
--- a/
archival/unzip.c
+++ b/
archival/unzip.c
@@
-57,7
+57,7
@@
typedef union {
uint16_t filename_len; /* 22-23 */
uint16_t extra_len; /* 24-25 */
} 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
* allows for poor packing, whereby the overall struct may be too long,