#42881: can_unit_do_activity_targeted_at(): ACTIVITY_EXPLORE case may fall through Open Date: 2021-09-19 08:41 Last Update: 2021-09-19 08:41 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/42881 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=42881 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2021-09-19 08:41 Updated by: cazfi * New Ticket "can_unit_do_activity_targeted_at(): ACTIVITY_EXPLORE case may fall through" created --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: (None) Type: Bugs Status: Open Priority: 5 - Medium MileStone: (None) Component: General Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: With -Wimplicit-fallthrough in master: ../../../src/common/unit.c: In function ‘can_unit_do_activity_targeted_at’: ../../../src/common/unit.c:913:5: error: this statement may fall through -Werror=implicit-fallthrough= 913 | switch (action_get_target_kind(paction)) { \ | ~ ../../../src/common/unit.c:913:5: note: in definition of macro ‘RETURN_IS_ACTIVITY_ENABLED_UNIT_ON’ 913 | switch (action_get_target_kind(paction)) { \ | ~ ../../../src/common/unit.c:1019:3: note: here 1019 | case ACTIVITY_EXPLORE: | ~ -- Ticket information of Freeciv project Freeciv Project is hosted on OSDN Project URL: https://osdn.net/projects/freeciv/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/freeciv/ticket/42881 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=42881