diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-01-28 14:05:12 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-01-28 18:35:49 +0100 |
commit | 6171812c5520b80dabd007c709143fbf43b527fb (patch) | |
tree | fdaa56a1af42c77b8ad6c7f6dfdc8134416c1fd6 /include/sal | |
parent | elementary: Move wrong placed icons, delete unnessary icons (diff) | |
download | core-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.h | 2 |
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 |