diff --git a/src/hb-private.hh b/src/hb-private.hh index eba797cfce9c7d909504304f08a01e4d6a90559e..53ed11c819abf66df9072888417aa30b01e5f0ac 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -154,6 +154,9 @@ extern "C" void hb_free_impl(void *ptr); #if defined(__clang__) && __cplusplus >= 201103L /* clang's fallthrough annotations are only available starting in C++11. */ # define HB_FALLTHROUGH [[clang::fallthrough]] +#elif __GNUC__ >= 7 + /* GNU fallthrough attribute is available from GCC7 */ +# define HB_FALLTHROUGH __attribute__((fallthrough)) #elif defined(_MSC_VER) /* * MSVC's __fallthrough annotations are checked by /analyze (Code Analysis):