From 0de4197758b5b2bf9d2632158d76de8a20dde147 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Tue, 14 May 2019 13:02:15 -0230 Subject: [PATCH] Eliminate unused variable (found by gcc-9). --- src/gui/GameInfoDialog.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/GameInfoDialog.cxx b/src/gui/GameInfoDialog.cxx index df457b279..f4330b70e 100644 --- a/src/gui/GameInfoDialog.cxx +++ b/src/gui/GameInfoDialog.cxx @@ -143,7 +143,7 @@ GameInfoDialog::GameInfoDialog( xpos = HBORDER; ypos = VBORDER; lwidth = font.getStringWidth(GUI::RIGHT_DIFFICULTY + " "); - StaticTextWidget* s = new StaticTextWidget(myTab, font, xpos, ypos + 1, "TV type"); + new StaticTextWidget(myTab, font, xpos, ypos + 1, "TV type"); myTVTypeGroup = new RadioButtonGroup(); RadioButtonWidget* r = new RadioButtonWidget(myTab, font, xpos + lwidth, ypos + 1, "Color", myTVTypeGroup); @@ -154,7 +154,7 @@ GameInfoDialog::GameInfoDialog( wid.push_back(r); ypos += lineHeight + VGAP * 2; - s = new StaticTextWidget(myTab, font, xpos, ypos+1, GUI::LEFT_DIFFICULTY); + new StaticTextWidget(myTab, font, xpos, ypos+1, GUI::LEFT_DIFFICULTY); myLeftDiffGroup = new RadioButtonGroup(); r = new RadioButtonWidget(myTab, font, xpos + lwidth, ypos + 1, "A (Expert)", myLeftDiffGroup); @@ -165,7 +165,7 @@ GameInfoDialog::GameInfoDialog( wid.push_back(r); ypos += lineHeight + VGAP * 2; - s = new StaticTextWidget(myTab, font, xpos, ypos+1, GUI::RIGHT_DIFFICULTY); + new StaticTextWidget(myTab, font, xpos, ypos+1, GUI::RIGHT_DIFFICULTY); myRightDiffGroup = new RadioButtonGroup(); r = new RadioButtonWidget(myTab, font, xpos + lwidth, ypos + 1, "A (Expert)", myRightDiffGroup);