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

Decorate operator<< with "inline" to silence unused functions warning #6

Merged
merged 1 commit into from
May 13, 2018
Merged

Decorate operator<< with "inline" to silence unused functions warning #6

merged 1 commit into from
May 13, 2018

Conversation

pavelkryukov
Copy link
Contributor

If OptionsParser is not printed in the translation unit whereas popl.hpp file is included, GCC will consider operator<< as unused function and emit a warning. To prevent this, we use "static inline" instead of "static", claiming that function is header-function and may be unused in the code which includes that header.

@badaix badaix merged commit 54a210d into badaix:develop May 13, 2018
@badaix
Copy link
Owner

badaix commented May 13, 2018

👍

@pavelkryukov pavelkryukov deleted the inline branch May 13, 2018 15:32
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