[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - include/sal

Stephan Bergmann sbergman at redhat.com
Thu Jan 4 10:30:55 UTC 2018


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

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

    GCC 7 supports [[fallthrough]]
    
    Change-Id: Ic6fb995a76a30b60b597005e714de03d43c36a7c
    (cherry picked from commit 9ee0f108ca104ec76d2d73220686fb10c89e78e8)
    Reviewed-on: https://gerrit.libreoffice.org/47307
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/include/sal/types.h b/include/sal/types.h
index 3fc2be349ceb..0aee64874fb6 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