Skip to content

Commit edb0bf6

Browse files
committed
fix
1 parent 803fdfe commit edb0bf6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkother.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3692,7 +3692,7 @@ void CheckOther::checkUnusedLabel()
36923692

36933693
void CheckOther::unusedLabelError(const Token* tok, bool inSwitch, bool hasIfdef)
36943694
{
3695-
if (tok && !mSettings->severity.isEnabled(inSwitch ? Severity::warning : Severity::style))
3695+
if (tok && !mSettings->severity.isEnabled(inSwitch ? Severity::warning : Severity::style) && !mSettings->isPremiumEnabled("unusedLabel"))
36963696
return;
36973697

36983698
std::string id = "unusedLabel";

0 commit comments

Comments
 (0)