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 some GCC ODR warnings #5724

Merged
merged 1 commit into from Jun 29, 2017

Conversation

JonnyH
Copy link
Contributor

@JonnyH JonnyH commented Jun 29, 2017

struct GekkoOPTemplate was implemented differently in different
compilation units, which breaks the ODR and could end up causing issues
as symbols exported from one compilation unit 'could' end up being used by
another even if they have different implementations.

This puts them in an anonymous namespace, restricting any generated
symbols to the single compilation unit.

struct GekkoOPTemplate was implemented differently in different
compilation units, which breaks the ODR and could end up causing issues
as symbols exported from one compilation unit could end up being used by
another even if they have different implementations.

This puts them in an anonymous namespace, restricting any generated
symbols to the single compilation unit.
@JonnyH
Copy link
Contributor Author

JonnyH commented Jun 29, 2017

A bit of a pedantic nitpick, but gcc7 warns about this on LTO, and it was annoying me.

@lioncash lioncash merged commit 898bbff into dolphin-emu:master Jun 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants