unzip: hmm... gcc doesn't like ATTRIBUTE_PACKED?? Document that...
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Tue, 6 Nov 2007 02:16:01 +0000 (02:16 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Tue, 6 Nov 2007 02:16:01 +0000 (02:16 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@20372 69ca8d6d-28ef-0310-b511-8ec308f3f277

archival/unzip.c

index 001f2e1..118c99b 100644 (file)
@@ -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,