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

Globals removal #579

Merged
merged 6 commits into from Jul 11, 2014
Merged

Globals removal #579

merged 6 commits into from Jul 11, 2014

Conversation

degasus
Copy link
Member

@degasus degasus commented Jul 8, 2014

Add both -Wmissing-declarations and -Wmissing-variable-declarations.
Fixes all declaration warnings, now there are lots of unused functions.

@degasus
Copy link
Member Author

degasus commented Jul 8, 2014

Updated to avoid the keyword "extern" in the .cpp source files. They are moved into their header.

{
while (*ptr == ' ')
ptr++;
return ptr;
}

const char *skip_spaces(const char *ptr)
static const char *skip_spaces(const char *ptr)

This comment was marked as off-topic.

This comment was marked as off-topic.

@neobrain
Copy link
Member

neobrain commented Jul 8, 2014

Please use a more descriptive PR title.

@degasus degasus changed the title Statics Globals removal Jul 8, 2014
@degasus
Copy link
Member Author

degasus commented Jul 8, 2014

Marked all globals only used in one file as static and removed their header parts.

I think all changes are done which doesn't require to rewrite lots of code.

@lioncash
Copy link
Member

lioncash commented Jul 9, 2014

Looks good to me

@Tilka
Copy link
Member

Tilka commented Jul 10, 2014

Yes, please.

@degasus
Copy link
Member Author

degasus commented Jul 11, 2014

rebased to fix merge conflicts.

Do you need more reviews or is this ready to merge?

@delroth
Copy link
Member

delroth commented Jul 11, 2014

@dolphin-emu-bot rebuild

delroth added a commit that referenced this pull request Jul 11, 2014
Mark unexported global variables and functions as statics.
@delroth delroth merged commit 84bf097 into dolphin-emu:master Jul 11, 2014
CrossVR added a commit to CrossVR/dolphin that referenced this pull request Jul 11, 2014
@degasus degasus deleted the statics branch July 11, 2014 16:05
Tilka added a commit to Tilka/dolphin that referenced this pull request Jul 13, 2014
delroth added a commit that referenced this pull request Jul 13, 2014
Tilka added a commit to Tilka/dolphin that referenced this pull request Jul 13, 2014
Tilka added a commit to Tilka/dolphin that referenced this pull request Jul 13, 2014
CrossVR added a commit to CrossVR/dolphin that referenced this pull request Jul 16, 2014
CrossVR added a commit to CrossVR/dolphin that referenced this pull request Jul 16, 2014
CrossVR added a commit to CrossVR/dolphin that referenced this pull request Jul 16, 2014
CrossVR added a commit to CrossVR/dolphin that referenced this pull request Jul 19, 2014
CrossVR added a commit to CrossVR/dolphin that referenced this pull request Jul 19, 2014
CrossVR added a commit to CrossVR/dolphin that referenced this pull request Jul 19, 2014
Tilka added a commit to Tilka/dolphin that referenced this pull request Aug 7, 2014
lioncash added a commit that referenced this pull request Aug 7, 2014
MikeRavenelle pushed a commit to MikeRavenelle/dolphin that referenced this pull request Sep 2, 2014
MikeRavenelle pushed a commit to MikeRavenelle/dolphin that referenced this pull request Sep 2, 2014
MikeRavenelle pushed a commit to MikeRavenelle/dolphin that referenced this pull request Sep 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants