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

Mark argument as unused in optional.h #61

Closed
wants to merge 1 commit into from

Conversation

annius
Copy link
Contributor

@annius annius commented Feb 24, 2018

Fixes an unused parameter warning which is revealed when compiling a source that includes optional.h using clang++-3.8.

Marks an unused argument in `optional.h` with `__attribute__((unused))`.
The macro is defined as empty for Visual C++.
Copy link
Contributor

@jwellbelove jwellbelove left a comment

Choose a reason for hiding this comment

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

Actually, it seems that the returns for the nullopt operator overloads are back to front. I will change this at my end. Also I can see that optional is missing the full set of operators.

Can you make any further changes either on the development branch or a new 'bug fix' branch.

Thanks
John

@annius
Copy link
Contributor Author

annius commented Feb 24, 2018

Would you like me to close out this PR and create a new one into the devel branch?

@jwellbelove
Copy link
Contributor

I'll close this pull request and work on updating the full set of operators for etl::optional.
Thanks for bring it to my attention. Hopefully I will get a new version pushed by tomorrow evening.

@annius
Copy link
Contributor Author

annius commented Feb 24, 2018

👍 thanks!

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