From e317eca9a556ac8b92edfbbfaffee99a5beb592d Mon Sep 17 00:00:00 2001 From: Christian Prochaska Date: Fri, 10 Mar 2017 09:48:03 +0100 Subject: [PATCH] fuse_ext2: build with '-std=gnu89' GCC 6 defaults to '-std=gnu11' for the C language, which has different semantics for inline functions and triggers build errors. Fixes #2385 --- repos/libports/lib/mk/libext2fs.mk | 2 ++ repos/libports/src/server/fuse_fs/ext2/target.mk | 2 ++ 2 files changed, 4 insertions(+) diff --git a/repos/libports/lib/mk/libext2fs.mk b/repos/libports/lib/mk/libext2fs.mk index e02a72179..d11b46428 100644 --- a/repos/libports/lib/mk/libext2fs.mk +++ b/repos/libports/lib/mk/libext2fs.mk @@ -19,6 +19,8 @@ CC_OPT += -Wno-unused-function -Wno-unused-variable \ -Wno-unused-but-set-variable -Wno-cpp \ -Wno-maybe-uninitialized -Wno-uninitialized +CC_C_OPT += -std=gnu89 + LIBS += libc vpath %.c $(EXT2FS_DIR) diff --git a/repos/libports/src/server/fuse_fs/ext2/target.mk b/repos/libports/src/server/fuse_fs/ext2/target.mk index b59802400..e4add616b 100644 --- a/repos/libports/src/server/fuse_fs/ext2/target.mk +++ b/repos/libports/src/server/fuse_fs/ext2/target.mk @@ -17,6 +17,8 @@ CC_OPT += -Wno-unused-function -Wno-unused-variable \ -Wno-unused-but-set-variable -Wno-cpp \ -Wno-maybe-uninitialized +CC_C_OPT += -std=gnu89 + CC_C_OPT += -Wno-implicit-function-declaration