CMakeList: Check that compiler supports -Wimplicit-fallthrough
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 12 Sep 2018 00:14:19 +0000 (17:14 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Wed, 12 Sep 2018 00:14:19 +0000 (17:14 -0700)
commit0059335c5b60c5623a894f08a090fdabd618afae
tree5f520f968696badaeb94abd537069266a202293c
parent7454d121090f60428777c01f431031059acc96eb
CMakeList: Check that compiler supports -Wimplicit-fallthrough

This is a GCC >= 7 feature, not all compilers support it.

Fixes: 908a9f4f1027 ("CMakeLists.txt: add -Wimplicit-fallthrough to the compiler flags")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
CMakeLists.txt