[xoreos-git] [xoreos/xoreos-tools] 5667ff: BUILD: Add the -Wimplicit-fallthrough warning flag

GitHub noreply at github.com
Tue Feb 13 14:43:27 CET 2018


  Branch: refs/heads/master
  Home:   https://github.com/xoreos/xoreos-tools
  Commit: 5667ffdeeec5edf7ebfa8ca0404210c37f8db99b
      https://github.com/xoreos/xoreos-tools/commit/5667ffdeeec5edf7ebfa8ca0404210c37f8db99b
  Author: Sven Hesse <drmccoy at drmccoy.de>
  Date:   2018-02-13 (Tue, 13 Feb 2018)

  Changed paths:
    M CMakeLists.txt
    M configure.ac

  Log Message:
  -----------
  BUILD: Add the -Wimplicit-fallthrough warning flag

This warns about implicit (unmarked) fallthroughs in switch
statements. So now, all fallthroughs will have to be marked with a
"// Fallthrough" comment, to make it very obvious that the fallthrough
is intentional and not just an oversight.


  Commit: dfe6dd83fe89bf390f3a630f03f048f6769b40da
      https://github.com/xoreos/xoreos-tools/commit/dfe6dd83fe89bf390f3a630f03f048f6769b40da
  Author: Sven Hesse <drmccoy at drmccoy.de>
  Date:   2018-02-13 (Tue, 13 Feb 2018)

  Changed paths:
    M CMakeLists.txt
    M configure.ac

  Log Message:
  -----------
  BUILD: Add the -Wduplicated-branches warning flag

-Wduplicated-branches warns when an if-else has identical branches.


Compare: https://github.com/xoreos/xoreos-tools/compare/bf5867fc5263...dfe6dd83fe89


More information about the xoreos-git mailing list