Skip to content

Commit

Permalink
Correct unused-parameter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben RUBSON authored Nov 2, 2017
1 parent 6cb5078 commit 135fe9e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions encfs/encfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<DirNode> FSRoot = ctx->getRoot(&res);
if (!FSRoot) {
Expand Down
3 changes: 0 additions & 3 deletions encfs/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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, "");
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 135fe9e

Please sign in to comment.