From 1092b6078556a5e5caafab92c1ecd18b824daaad Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 18 Jan 2023 19:16:57 +0200 Subject: [PATCH 41/41] sdl2: Fix unused 'scroll' assignment from remove_clause_widget_from_list() See osdn #46545 Signed-off-by: Marko Lindqvist --- client/gui-sdl2/diplodlg.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/client/gui-sdl2/diplodlg.c b/client/gui-sdl2/diplodlg.c index a6b6ae4318..439df83def 100644 --- a/client/gui-sdl2/diplodlg.c +++ b/client/gui-sdl2/diplodlg.c @@ -1138,10 +1138,10 @@ static void remove_clause_widget_from_list(int counterpart, int giver, { struct widget *buf; SDL_Rect src = {0, 0, 0, 0}; - bool scroll = TRUE; + bool scroll; struct diplomacy_dialog *pdialog = get_diplomacy_dialog(counterpart); - /* find widget with clause */ + /* Find widget with clause */ buf = pdialog->pdialog->end_active_widget_list->next; do { @@ -1169,14 +1169,12 @@ static void remove_clause_widget_from_list(int counterpart, int giver, buf = buf->prev; widget_undraw(buf); buf->size.w += len; - /* we need to save a new background because the width has changed */ + /* We need to save a new background because the width has changed */ FREESURFACE(buf->gfx); } while (buf != pdialog->pdialog->begin_active_widget_list); - - scroll = FALSE; } - /* update state icons */ + /* Update state icons */ buf = pdialog->pdialog->end_widget_list->prev; if (buf->private_data.cbox->state) { -- 2.39.0