From 135fe9e98b2419d06f51dc1d86e4200c3a0fb61e Mon Sep 17 00:00:00 2001 From: Ben RUBSON Date: Thu, 2 Nov 2017 08:35:30 +0100 Subject: [PATCH] Correct unused-parameter warnings --- CMakeLists.txt | 1 - encfs/encfs.cpp | 4 ++++ encfs/main.cpp | 3 --- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e961a6..f7e23e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -179,7 +179,6 @@ if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 3.5) # Need 3.6 or abo ",-google-readability-todo" ",-google-runtime-int" ",-google-runtime-references" - ",-misc-unused-parameters" ",-modernize-loop-convert" ",-readability-inconsistent-declaration-parameter-name" ",-readability-named-parameter" diff --git a/encfs/encfs.cpp b/encfs/encfs.cpp index 77d81b9..27c6160 100644 --- a/encfs/encfs.cpp +++ b/encfs/encfs.cpp @@ -230,6 +230,10 @@ int encfs_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *finfo) { EncFS_Context *ctx = context(); + //unused parameters + (void)offset; + (void)finfo; + int res = ESUCCESS; std::shared_ptr FSRoot = ctx->getRoot(&res); if (!FSRoot) { diff --git a/encfs/main.cpp b/encfs/main.cpp index 5421096..37ec751 100644 --- a/encfs/main.cpp +++ b/encfs/main.cpp @@ -556,8 +556,6 @@ void *encfs_init(fuse_conn_info *conn) { return (void *)ctx; } -void encfs_destroy(void *_ctx) {} - int main(int argc, char *argv[]) { #if defined(ENABLE_NLS) && defined(LOCALEDIR) setlocale(LC_ALL, ""); @@ -621,7 +619,6 @@ int main(int argc, char *argv[]) { // encfs_oper.releasedir = encfs_releasedir; // encfs_oper.fsyncdir = encfs_fsyncdir; encfs_oper.init = encfs_init; - encfs_oper.destroy = encfs_destroy; // encfs_oper.access = encfs_access; encfs_oper.create = encfs_create; encfs_oper.ftruncate = encfs_ftruncate;