From 2a9f6533fe34ec4a65b8ad5aa48d5afa7b8965f0 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 30 May 2023 10:45:29 +0300 Subject: [PATCH 2/2] Fix -Wtautological-pointer-compare in show_full_citybar() See osdn #48109 Signed-off-by: Marko Lindqvist --- client/mapview_common.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/client/mapview_common.c b/client/mapview_common.c index cb6f68af8f..56b211fd42 100644 --- a/client/mapview_common.c +++ b/client/mapview_common.c @@ -1911,12 +1911,8 @@ static void show_full_citybar(struct canvas *pcanvas, || should_draw_trade_routes; - if (width != NULL) { - *width = 0; - } - if (height != NULL) { - *height = 0; - } + *width = 0; + *height = 0; if (!gui_options.draw_city_names && !should_draw_lower_bar) { return; -- 2.39.2