From ca9ea2d2122162bbcc1ea900896f933973bf3891 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 6 Aug 2022 04:44:32 +0300 Subject: [PATCH 41/41] sdl2: Silence clang analyzer "Division by zero" -warning See osdn #45233 Signed-off-by: Marko Lindqvist --- client/gui-sdl2/citydlg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/gui-sdl2/citydlg.c b/client/gui-sdl2/citydlg.c index 0f852d501c..55efe0f92b 100644 --- a/client/gui-sdl2/citydlg.c +++ b/client/gui-sdl2/citydlg.c @@ -1683,7 +1683,7 @@ static int next_prev_city_dlg_callback(struct widget *button) fc_assert_ret_val(non_open_size > 0, -1); - if (non_open_size == 1) { + if (non_open_size <= 1) { FC_FREE(array); return -1; } -- 2.35.1