mirror of
https://github.com/vgough/encfs.git
synced 2024-11-25 09:23:13 +01:00
Correct unused-parameter warnings
This commit is contained in:
parent
6cb5078cb2
commit
135fe9e98b
@ -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"
|
||||||
|
@ -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) {
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user