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

Remove stray enum instance #98

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

Conversation

goto-bus-stop
Copy link

@goto-bus-stop goto-bus-stop commented Aug 23, 2020

This enum LOG_LEVELS declaration also included a variable name,
causing RuntimeTools/appmetrics#641. It ended
up defining a Log_levels variable in every compilation unit that
included "Log.h", which then caused duplicate symbols at link time.

I don't know if there was a reason for this definition, but it looks
like a bug to me … if not, maybe it can be fixed by just putting a
static in front? idk.

Thanks!

This `enum LOG_LEVELS` declaration also included a _variable name_,
causing RuntimeTools/appmetrics#641. It ended
up defining a `Log_levels` variable in every compilation unit that
included "Log.h", which then caused duplicate symbols at link time.

I don't know if there was a reason for this definition, but it looks
like a bug to me … if not, maybe it can be fixed by just putting a
`static` in front? idk.

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.

1 participant