1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

build: -Wimplicit-fallthrough warning for GCC 7+ only

This commit is contained in:
Alexander Alekhin
2018-04-24 14:27:17 +03:00
parent 6b581c4e51
commit ef2548778c
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ using namespace std;
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wimplicit-fallthrough"
#endif
#if defined(__GNUC__)
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#endif