From 7998fdaf3f4e499c88e9d5c82252b245e9897ebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Mon, 9 Dec 2013 16:18:54 +0100 Subject: [PATCH] libports: less noisy compilation of libfuse Out of laziness we only provide two dummy functions for all FUSE operations, which are used in case the FUSE file system does not implement them itself. Fixes #1058. --- libports/src/lib/fuse/fuse.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libports/src/lib/fuse/fuse.cc b/libports/src/lib/fuse/fuse.cc index 4127d176f5..fccf4b59af 100644 --- a/libports/src/lib/fuse/fuse.cc +++ b/libports/src/lib/fuse/fuse.cc @@ -148,6 +148,12 @@ struct fuse* fuse_new(struct fuse_chan *chan, struct fuse_args *args, Genode::memcpy(&_fuse->op, fsop, Genode::min(size, sizeof (_fuse->op))); + /** + * Defining a dummy function for each fuse operation is cumbersome. + * So let us faithfully ignore the compiler. + */ +#pragma GCC diagnostic ignored "-fpermissive" + FIX_UP_OPERATION1(_fuse, readlink); FIX_UP_OPERATION1(_fuse, mknod); FIX_UP_OPERATION1(_fuse, unlink);