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 compiler warnings and MinGW build #4082

Merged
merged 1 commit into from Oct 31, 2018

Conversation

Jojo-Schmitz
Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz commented Oct 30, 2018

No description provided.

@Jojo-Schmitz Jojo-Schmitz force-pushed the warnings branch 2 times, most recently from 3992d84 to 3eab271 Compare October 30, 2018 15:01
@@ -218,7 +218,6 @@
// Undefined problematic #def'd macros in Microsoft headers
#undef STRING_NONE
#undef small
#undef DELETE
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved directly to where it is really needed...

@@ -36,7 +36,7 @@ enum class ItemType {
//---------------------------------------------------------
// DiffType
//---------------------------------------------------------

#undef DELETE
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed not just for MSVC, but also for MinGW, and as thirdparty/diff_match_patch unconditionally #undef's it , we're doing it here too.
This actually doesn't fix a compiler warning. but a hard build error, with MinGW.

@Jojo-Schmitz Jojo-Schmitz changed the title fix compiler warnings fix compiler warnings and MinGW build Oct 31, 2018
@@ -240,7 +240,7 @@ void ScoreComparisonTool::updateDiff()

Score* ScoreComparisonTool::openScoreVersion(const ScoreVersion& ver)
{
Score* s;
Score* s = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nullptr is more effective.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, AFAIK its the same thing to C/C++ and less to type. And on the occasions where I did use nullptr, it didn't pass review ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but as you want it: here we go

@anatoly-os anatoly-os merged commit 3be62c4 into musescore:master Oct 31, 2018
@Jojo-Schmitz Jojo-Schmitz deleted the warnings branch October 31, 2018 20:24
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.

None yet

2 participants