]> wimlib.net Git - wimlib/blobdiff - src/tagged_items.c
Fix win32-test-imagex-capture_and_apply.bat and add to CI
[wimlib] / src / tagged_items.c
index 82beb48d33e1e6cfe9963ac30b13d5d8d48c40c6..dee065174c882c38880e577c5912bdcb6ef1851f 100644 (file)
@@ -19,7 +19,7 @@
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public License
- * along with this file; if not, see http://www.gnu.org/licenses/.
+ * along with this file; if not, see https://www.gnu.org/licenses/.
  */
 
 #ifdef HAVE_CONFIG_H
@@ -48,7 +48,7 @@ struct tagged_item_header {
        u8 data[0];
 
        /* then zero-padded to an 8-byte boundary */
-} _aligned_attribute(8);
+} __attribute__((aligned(8)));
 
 /*
  * Retrieve from @inode the first metadata item that is tagged with @tag and
@@ -63,6 +63,8 @@ inode_get_tagged_item(const struct wim_inode *inode, u32 tag, u32 min_len,
        struct tagged_item_header *hdr;
        size_t len_remaining;
 
+       STATIC_ASSERT(sizeof(*hdr) == 8);
+
        if (!inode->i_extra)
                return NULL;