diff options
author | Tobias Jungel <tobias.jungel@gmail.com> | 2017-10-15 01:23:07 +0200 |
---|---|---|
committer | Tobias Jungel <tobias.jungel@gmail.com> | 2017-10-15 01:31:18 +0200 |
commit | 37e112f45616a88d7904552fd2a7d9142d9f9a0b (patch) | |
tree | f499aa2e00c65b7cbed7071432732eeb7fe6b383 /src/google/protobuf/stubs | |
parent | f850188e6e1021b4fe21ecb0aca548a54c272ce5 (diff) |
fix implicit fallthrough in gcc 7
fixes #3700
Diffstat (limited to 'src/google/protobuf/stubs')
-rw-r--r-- | src/google/protobuf/stubs/port.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/google/protobuf/stubs/port.h b/src/google/protobuf/stubs/port.h index 19ac6f1c..cecefdcb 100644 --- a/src/google/protobuf/stubs/port.h +++ b/src/google/protobuf/stubs/port.h @@ -243,6 +243,8 @@ static const uint64 kuint64max = GOOGLE_ULONGLONG(0xFFFFFFFFFFFFFFFF); __has_cpp_attribute(clang::fallthrough) # define GOOGLE_FALLTHROUGH_INTENDED [[clang::fallthrough]] # endif +#elif defined(__GNUC__) && __GNUC__ > 6 +# define GOOGLE_FALLTHROUGH_INTENDED [[gnu::fallthrough]] #endif #ifndef GOOGLE_FALLTHROUGH_INTENDED |