upgrade_unit_order_targets(): Dead assignment of tgt_tile
upgrade_unit_order_targets():
/* The target is already specified in the new format. */ tgt_tile = index_to_tile(&(wld.map), order->target); fc_assert(tgt_tile != NULL); return;
tgt_tile is not used in NDEBUG build, and entire index_to_tile() call (with no relevant side-effect) is unnecessary in such cases.
upgrade_unit_order_targets():
/* The target is already specified in the new format. */
tgt_tile = index_to_tile(&(wld.map), order->target);
fc_assert(tgt_tile != NULL);
return;
tgt_tile is not used in NDEBUG build, and entire index_to_tile() call (with no relevant side-effect) is unnecessary in such cases.