Skip to content

Fix MSVC Compiler warnings#32771

Open
Jojo-Schmitz wants to merge 3 commits intomusescore:masterfrom
Jojo-Schmitz:compiler-warnings
Open

Fix MSVC Compiler warnings#32771
Jojo-Schmitz wants to merge 3 commits intomusescore:masterfrom
Jojo-Schmitz:compiler-warnings

Conversation

@Jojo-Schmitz
Copy link
Copy Markdown
Contributor

@Jojo-Schmitz Jojo-Schmitz commented Mar 25, 2026

  • reg.: declaration of 'staffIdx' hides previous local declaration (C4456)
  • reg.: 'formatInstrumentTitleOnScore': unreferenced function with internal linkage has been removed (C4505)
  • reg.: "SRC:/src/framework/ui/view/widgetdialog.cpp" is empty.


static const mu::engraving::Fraction DEFAULT_TICK = mu::engraving::Fraction(0, 1);

static String formatInstrumentTitleOnScore(const String& instrumentName, const Trait& trait)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's strange that this function isn't used anywhere. It's supposed to be used to construct the instrument names you see in the score (but not in the UI where a different function is used).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes it seems unused. See also #32821, which also wants to remove it

reg.: declaration of 'staffIdx' hides previous local declaration (C4456)
reg.: 'formatInstrumentTitleOnScore': unreferenced function with internal linkage has been removed (C4505)
reg.: "SRC:/src/framework/ui/view/widgetdialog.cpp" is empty.
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.

2 participants