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

Fix Clang warnings #228

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

gin-ahirsch
Copy link
Contributor

The reason for replacement of class ObservedFile to struct ObservedFile should be rather obvious.

Using inline in favor of an anonymous namespace is because the latter generates warnings about unused functions if the header is included in files which do not use them.
It is possible to do both, i.e. define the functions as inline in an anonymous namespace, though I guess the anonymous namespace was used to prevent linking-issues ("One Definition Rule") and not specifically because each TU should get it's own copy. inline functions are exempt from the ODR.

danberindei pushed a commit to danberindei/glogg that referenced this pull request Apr 21, 2021
danberindei pushed a commit to danberindei/glogg that referenced this pull request Apr 21, 2021
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.

1 participant