Skip to content

Fix Clang warnings#228

Open
gin-ahirsch wants to merge 1 commit intonickbnf:masterfrom
gin-ahirsch:clang-warn
Open

Fix Clang warnings#228
gin-ahirsch wants to merge 1 commit intonickbnf:masterfrom
gin-ahirsch:clang-warn

Conversation

@gin-ahirsch
Copy link
Copy Markdown
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