make clean all fails with -Wimplicit-fallthrough=2

Issue #1126 resolved
Thomas Helmrich created an issue

Hello,

when building the current master i get following error:

gcc: error: unrecognized command line option -Wimplicit-fallthrough=2; did you mean -Wno-fallthrough?

I´m Using

gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)

Any suggest to fix this?
Thanks & best regards

Comments (3)

  1. Janos SUTO repo owner

    Hello Thomas, just simply remove -Wimplicit-fallthrough=2 from the Makefiles (or even configure) script, and you should be fine. Btw. why don’t you use a more recent version of Debian?

  2. Thomas Helmrich reporter

    Thanks!
    What´s the flag for?

    Btw. why don’t you use a more recent version of Debian?

    Still on my agendo to upgrade, but currently still supported via LTS. Nevermind, thanks for the hint and the ‘kick in the ass’, will upgrade it :)

  3. Janos SUTO repo owner

    It's a compiler flag to prevent it complaining for an intentional switch-case fallthrough structure in the code.

  4. Log in to comment