From cd23817bf1884fee4457ab3381320b0c8fc33f48 Mon Sep 17 00:00:00 2001 From: Kai Blaschke Date: Wed, 28 Feb 2024 18:11:55 +0100 Subject: Fixed remaining compiler warnings Some warnings (e.g. in Opus and the tests) can't be fixed, only suppressed. --- source/frontend/StarTeamBar.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'source/frontend/StarTeamBar.cpp') diff --git a/source/frontend/StarTeamBar.cpp b/source/frontend/StarTeamBar.cpp index d0c23c5..0909f9f 100644 --- a/source/frontend/StarTeamBar.cpp +++ b/source/frontend/StarTeamBar.cpp @@ -149,7 +149,6 @@ void TeamBar::buildTeamBar() { Vec2I offset; size_t controlIndex = 0; - size_t memberIndex = 0; float portraitScale = assets->json("/interface/windowconfig/teambar.config:memberPortraitScale").toFloat(); int memberSize = assets->json("/interface/windowconfig/teambar.config:memberSize").toInt(); @@ -158,7 +157,6 @@ void TeamBar::buildTeamBar() { Uuid myUuid = player->clientContext()->playerUuid(); for (auto member : teamClient->members()) { if (member.uuid == myUuid) { - memberIndex++; continue; } @@ -217,7 +215,6 @@ void TeamBar::buildTeamBar() { offset[1] -= memberSpacing; controlIndex++; - memberIndex++; } auto inviteButton = fetchChild("inviteButton"); -- cgit v1.2.3