mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 06:07:59 +00:00
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.
This commit is contained in:
parent
8f1e8c122f
commit
7998fdaf3f
@ -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)));
|
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, readlink);
|
||||||
FIX_UP_OPERATION1(_fuse, mknod);
|
FIX_UP_OPERATION1(_fuse, mknod);
|
||||||
FIX_UP_OPERATION1(_fuse, unlink);
|
FIX_UP_OPERATION1(_fuse, unlink);
|
||||||
|
Loading…
Reference in New Issue
Block a user