scoutfs-utils: Enable -Wpadded

The compiler will complain if it sees any padding.

Fix a spot in print.c for this.

Signed-off-by: Andy Grover <agrover@versity.com>
This commit is contained in:
Andy Grover
2020-10-28 10:46:18 -07:00
committed by Zach Brown
parent 6fea9f90c4
commit 5701182665
2 changed files with 2 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ SCOUTFS_FORMAT_HASH := \
$(shell cat src/format.h src/ioctl.h | md5sum | cut -b1-16)
CFLAGS := -Wall -O2 -Werror -D_FILE_OFFSET_BITS=64 -g -msse4.2 \
-Wpadded \
-fno-strict-aliasing \
-DSCOUTFS_FORMAT_HASH=0x$(SCOUTFS_FORMAT_HASH)LLU

View File

@@ -671,6 +671,7 @@ out:
struct print_recursion_args {
struct scoutfs_super_block *super;
int fd;
u8 __pad[4];
};
/* same as fs item but with a small header in the value */