diff options
author | Chris Webb <chris@arachsys.com> | 2023-12-09 14:31:40 +0000 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-09 23:29:04 -0500 |
commit | cc98a16776669fee837daa37e127848915386058 (patch) | |
tree | b27a0e80e5daaf9a70d80bf53ef5a71f164167cf | |
parent | 0d401928b876d75ea6f85a4e305f945d946adde4 (diff) |
bcachefs-tools: Disable -Wgnu-variable-sized-type-not-at-end for clang
clang's default warnings include -Wgnu-variable-sized-type-not-at-end,
producing a lot of false alarms about the GNU extension for libbcachefs.
Disable these using cc-disable-warning when building with clang.
Signed-off-by: Chris Webb <chris@arachsys.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -59,6 +59,7 @@ CFLAGS+=$(call cc-disable-warning, missing-braces) CFLAGS+=$(call cc-disable-warning, zero-length-array) CFLAGS+=$(call cc-disable-warning, shift-overflow) CFLAGS+=$(call cc-disable-warning, enum-conversion) +CFLAGS+=$(call cc-disable-warning, gnu-variable-sized-type-not-at-end) PKGCONFIG_LIBS="blkid uuid liburcu libsodium zlib liblz4 libzstd libudev libkeyutils udev" ifdef BCACHEFS_FUSE |