[EXT2] Disable GCC 13 address-of-packed-member warning

C:/ReactOS/reactos/drivers/filesystems/ext2/src/ext4/ext4_extents.c: In function 'ext4_ext_insert_index':
C:/ReactOS/reactos/drivers/filesystems/ext2/src/ext4/ext4_extents.c:788:22: warning: taking address of packed member of 'struct ext4_extent_header' may result in an unaligned pointer value [-Waddress-of-packed-member]
  788 |         le16_add_cpu(&curp->p_hdr->eh_entries, 1);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
Timo Kreuzer
2026-03-18 17:29:12 +02:00
parent ddf58eb2f8
commit 3723e5a4dd
+3 -1
View File
@@ -100,7 +100,9 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
-Wno-pointer-sign -Wno-unused-function -Wno-unused-variable -Wno-missing-braces -Wno-unused-but-set-variable)
endif()
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(ext2fs PRIVATE -Wno-address-of-packed-member)
elseif(CMAKE_C_COMPILER_ID STREQUAL "Clang")
target_compile_options(ext2fs PRIVATE
-Wno-parentheses-equality
-Wno-incompatible-pointer-types-discards-qualifiers