Correct unused-parameter warnings

This commit is contained in:
Ben RUBSON 2017-11-02 08:35:30 +01:00 committed by GitHub
parent 6cb5078cb2
commit 135fe9e98b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -179,7 +179,6 @@ if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 3.5) # Need 3.6 or abo
",-google-readability-todo" ",-google-readability-todo"
",-google-runtime-int" ",-google-runtime-int"
",-google-runtime-references" ",-google-runtime-references"
",-misc-unused-parameters"
",-modernize-loop-convert" ",-modernize-loop-convert"
",-readability-inconsistent-declaration-parameter-name" ",-readability-inconsistent-declaration-parameter-name"
",-readability-named-parameter" ",-readability-named-parameter"

View File

@ -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) { off_t offset, struct fuse_file_info *finfo) {
EncFS_Context *ctx = context(); EncFS_Context *ctx = context();
//unused parameters
(void)offset;
(void)finfo;
int res = ESUCCESS; int res = ESUCCESS;
std::shared_ptr<DirNode> FSRoot = ctx->getRoot(&res); std::shared_ptr<DirNode> FSRoot = ctx->getRoot(&res);
if (!FSRoot) { if (!FSRoot) {

View File

@ -556,8 +556,6 @@ void *encfs_init(fuse_conn_info *conn) {
return (void *)ctx; return (void *)ctx;
} }
void encfs_destroy(void *_ctx) {}
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
#if defined(ENABLE_NLS) && defined(LOCALEDIR) #if defined(ENABLE_NLS) && defined(LOCALEDIR)
setlocale(LC_ALL, ""); setlocale(LC_ALL, "");
@ -621,7 +619,6 @@ int main(int argc, char *argv[]) {
// encfs_oper.releasedir = encfs_releasedir; // encfs_oper.releasedir = encfs_releasedir;
// encfs_oper.fsyncdir = encfs_fsyncdir; // encfs_oper.fsyncdir = encfs_fsyncdir;
encfs_oper.init = encfs_init; encfs_oper.init = encfs_init;
encfs_oper.destroy = encfs_destroy;
// encfs_oper.access = encfs_access; // encfs_oper.access = encfs_access;
encfs_oper.create = encfs_create; encfs_oper.create = encfs_create;
encfs_oper.ftruncate = encfs_ftruncate; encfs_oper.ftruncate = encfs_ftruncate;