summaryrefslogtreecommitdiffstats
path: root/include/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-01-28 14:05:12 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-01-28 18:35:49 +0100
commit6171812c5520b80dabd007c709143fbf43b527fb (patch)
treefdaa56a1af42c77b8ad6c7f6dfdc8134416c1fd6 /include/sal
parentelementary: Move wrong placed icons, delete unnessary icons (diff)
downloadcore-6171812c5520b80dabd007c709143fbf43b527fb.tar.gz
core-6171812c5520b80dabd007c709143fbf43b527fb.zip
HAVE_GCC_ATTRIBUTE_WARN_UNUSED should always be true now for Clang/GCC
...but for safety, leave the configure.ac check in for some longer. Change-Id: I90cba5812492ba85d7723ff71aba75b7721b9622 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87621 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/sal')
-rw-r--r--include/sal/types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sal/types.h b/include/sal/types.h
index 1a8ba255b4b7..53cbd687497a 100644
--- a/include/sal/types.h
+++ b/include/sal/types.h
@@ -572,7 +572,7 @@ template< typename T1, typename T2 > inline T1 static_int_cast(T2 n) {
*/
-#if HAVE_GCC_ATTRIBUTE_WARN_UNUSED
+#if defined LIBO_INTERNAL_ONLY && (defined __GNUC__ || defined __clang__)
#define SAL_WARN_UNUSED __attribute__((warn_unused))
#else
#define SAL_WARN_UNUSED