Skip to content

Commit 6c28a1a

Browse files
committed
Linux: don't explicitly declare -std=gnu99
For a long time Linux has compiled with -std=gnu11, and there are some parts of the headers that depend on behaviour defined there. Clang is stricter about enforcing this than GCC, so downgrading to gnu99 can break the build in some configurations. Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <[email protected]>
1 parent 06c73cf commit 6c28a1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/Kbuild.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# first. This ensures its module initialization function is run before
33
# any of the other module initialization functions which depend on it.
44

5-
ZFS_MODULE_CFLAGS += -std=gnu99 -Wno-declaration-after-statement
5+
ZFS_MODULE_CFLAGS += -Wno-declaration-after-statement
66
ZFS_MODULE_CFLAGS += -Wmissing-prototypes
77
ZFS_MODULE_CFLAGS += @KERNEL_DEBUG_CFLAGS@ @KERNEL_NO_FORMAT_ZERO_LENGTH@
88

0 commit comments

Comments
 (0)