freebsd-ports/sysutils/fusefs-encfs/files/patch-encfs_NullCipher.cpp
Dmitri Goutnik 7508209535 sysutils/fusefs-encfs: Unbreak build with llvm13
/wrkdirs/usr/ports/sysutils/fusefs-encfs/work/encfs-1.9.5/encfs/NullCipher.cpp:81:36: error: no matching constructor for initialization of 'std::shared_ptr<AbstractCipherKey>'
std::shared_ptr<AbstractCipherKey> gNullKey(new NullKey(), NullDestructor());
                                   ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Solution was taken from eacf34a1cf
2022-05-14 11:19:26 -05:00

11 lines
438 B
C++

--- encfs/NullCipher.cpp.orig 2022-05-14 16:04:54 UTC
+++ encfs/NullCipher.cpp
@@ -76,7 +76,7 @@ class NullDestructor {
NullDestructor &operator=(const NullDestructor &) = delete; // copy assignment
NullDestructor& operator=(NullDestructor&& other) = delete; // move assignment
- void operator()(NullKey *&) {}
+ void operator()(NullKey *) {}
};
std::shared_ptr<AbstractCipherKey> gNullKey(new NullKey(), NullDestructor());