[Libreoffice-commits] core.git: include/sal

Stephan Bergmann sbergman at redhat.com
Fri Jan 27 17:05:29 UTC 2017


 include/sal/types.h |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 9ee0f108ca104ec76d2d73220686fb10c89e78e8
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jan 27 18:04:53 2017 +0100

    GCC 7 supports [[fallthrough]]
    
    Change-Id: Ic6fb995a76a30b60b597005e714de03d43c36a7c

diff --git a/include/sal/types.h b/include/sal/types.h
index 3fc2be3..0aee648 100644
--- a/include/sal/types.h
+++ b/include/sal/types.h
@@ -448,6 +448,8 @@ namespace css = ::com::sun::star;
 #if defined LIBO_INTERNAL_ONLY
 #if defined __clang__
 #define SAL_FALLTHROUGH [[clang::fallthrough]]
+#elif defined __GNUC__ && __GNUC__ >= 7
+#define SAL_FALLTHROUGH [[fallthrough]]
 #else
 #define SAL_FALLTHROUGH
 #endif


More information about the Libreoffice-commits mailing list