summaryrefslogtreecommitdiff
path: root/include/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-12-07 11:57:21 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-12-07 22:47:08 +0100
commit7ffdd830d5fb52f2ca25aa80277d22ea6d89970b (patch)
tree0ccd68b656c6e37169730b33249e4a4a2ff46314 /include/sal
parent7d928d8c6eb03c4e5e0d1961e9b62718ab53fb46 (diff)
HAVE_CPP_ATTRIBUTE_FALLTHROUGH is always true now
...but for safety, leave the configure.ac check in for some longer. Also, save removing now-redundant SAL_FALLTHROUGH for a follow-up commit. Change-Id: I9bf42d237aea4c09459f28275568cf340e588607 Reviewed-on: https://gerrit.libreoffice.org/64770 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/sal')
-rw-r--r--include/sal/types.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/sal/types.h b/include/sal/types.h
index b687490ed949..6e20a854861f 100644
--- a/include/sal/types.h
+++ b/include/sal/types.h
@@ -410,15 +410,7 @@ namespace css = ::com::sun::star;
#endif
#if defined LIBO_INTERNAL_ONLY
-#if HAVE_CPP_ATTRIBUTE_FALLTHROUGH
#define SAL_FALLTHROUGH [[fallthrough]]
-#elif defined __clang__
- /* before Clang 3.9, according to
- <https://en.cppreference.com/w/cpp/compiler_support#C.2B.2B17_features> */
-#define SAL_FALLTHROUGH [[clang::fallthrough]]
-#else
-#define SAL_FALLTHROUGH
-#endif
#endif
#endif /* __cplusplus */