From 6dd83f2d975cb26d96a816b0ab14c82d5d5e697f Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 22 Nov 2022 20:53:46 +0200 Subject: [PATCH 24/24] activity_requires_target(): Avoid 'default' case See osdn #45776 Signed-off-by: Marko Lindqvist --- common/unit.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/common/unit.c b/common/unit.c index 8d0f33ebdc..9b53fe8cc3 100644 --- a/common/unit.c +++ b/common/unit.c @@ -547,10 +547,15 @@ bool activity_requires_target(enum unit_activity activity) case ACTIVITY_FORTRESS: case ACTIVITY_AIRBASE: case ACTIVITY_PATROL_UNUSED: - default: - fc_assert_ret_val(FALSE, FALSE); + case ACTIVITY_OLD_ROAD: + case ACTIVITY_OLD_RAILROAD: + case ACTIVITY_UNKNOWN: + case ACTIVITY_LAST: + break; } + fc_assert(FALSE); + return FALSE; } -- 2.35.1