mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-09 05:13:18 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user