[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Tue Feb 6 00:51:33 UTC 2018
src/hb-private.hh | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit f41b92134a276716b7e2d7ef54996b30f36a10a9
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Mon Feb 5 19:51:09 2018 -0500
Fix fallthrough compiler warning with gcc >= 7
Fixes https://github.com/harfbuzz/harfbuzz/issues/755
diff --git a/src/hb-private.hh b/src/hb-private.hh
index eba797cf..53ed11c8 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):
More information about the HarfBuzz
mailing list