Merge pull request #3754 from toanju/gcc-fallthrough

fix implicit fallthrough in gcc 7
This commit is contained in:
Jisi Liu 2017-10-19 10:54:50 -07:00 committed by GitHub
commit 2a14214045

View File

@ -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