We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 803fdfe commit edb0bf6Copy full SHA for edb0bf6
1 file changed
lib/checkother.cpp
@@ -3692,7 +3692,7 @@ void CheckOther::checkUnusedLabel()
3692
3693
void CheckOther::unusedLabelError(const Token* tok, bool inSwitch, bool hasIfdef)
3694
{
3695
- if (tok && !mSettings->severity.isEnabled(inSwitch ? Severity::warning : Severity::style))
+ if (tok && !mSettings->severity.isEnabled(inSwitch ? Severity::warning : Severity::style) && !mSettings->isPremiumEnabled("unusedLabel"))
3696
return;
3697
3698
std::string id = "unusedLabel";
0 commit comments