-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct unused-parameter warnings #432
Conversation
CMakeLists.txt
Outdated
@@ -180,7 +180,6 @@ if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 3.5) # Need 3.6 or abo | |||
",-google-runtime-int" | |||
",-google-runtime-references" | |||
",-misc-misplaced-widening-cast" | |||
",-misc-unused-parameters" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove the check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All checks are enabled, but the listed ones, so I simply re-enable misc-unused-parameters
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK for you @rfjakob ? Thx 👍
encfs/main.cpp
Outdated
@@ -621,7 +619,7 @@ 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.destroy = encfs_destroy; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsure about this. Leaving encfs_oper.destroy = NULL does not change the behavoir ob libfuse?
In any case, should be deleted instead of commented out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verified this, and no, the function is simply called if it exists, but is not replaced by anything else : https://github.com/libfuse/libfuse/blob/fuse_2_9_5/lib/fuse.c#L2614
I just removed the comment.
Thx 👍
Hi,
This PR helps with #427 and #426, it solves warnings regarding unused-parameter.
Thank you 👍
Ben