[wesnoth-commits] [wesnoth/wesnoth] 0381a4: orb_status_helper: add returns after already-unrea...

Steve Cotton noreply at github.com
Tue Nov 10 21:03:16 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 0381a4a090961d4638174f54082cff115ad5f386
      https://github.com/wesnoth/wesnoth/commit/0381a4a090961d4638174f54082cff115ad5f386
  Author: Steve Cotton <steve at octalot.co.uk>
  Date:   2020-11-10 (Tue, 10 Nov 2020)

  Changed paths:
    M src/units/orb_status.cpp

  Log Message:
  -----------
  orb_status_helper: add returns after already-unreachable asserts

I'm sure that these asserts are already unreachable, as the caller will be
passing in a valid member of the scoped enum; the asserts are just helpers
if adding another value to the enum.  However, omitting the return statements
can trigger a compiler warning, so add them.





More information about the Commits mailing list