Skip to content
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

Merged
merged 5 commits into from
Nov 2, 2017
Merged

Correct unused-parameter warnings #432

merged 5 commits into from
Nov 2, 2017

Conversation

benrubson
Copy link
Contributor

Hi,

This PR helps with #427 and #426, it solves warnings regarding unused-parameter.

Thank you 👍

Ben

@benrubson benrubson requested a review from vgough October 20, 2017 17:40
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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove the check?

Copy link
Contributor Author

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 👍

Copy link
Contributor Author

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;
Copy link
Collaborator

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.

Copy link
Contributor Author

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 👍

@benrubson benrubson merged commit 135fe9e into vgough:master Nov 2, 2017
@benrubson benrubson deleted the clang4 branch November 2, 2017 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants