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

Tor Lillqvist tml at iki.fi
Tue Jul 23 05:10:26 PDT 2013


 include/sal/types.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2fbcff579b54cb1c3148fb1fb20c1c7d42857ec9
Author: Tor Lillqvist <tml at iki.fi>
Date:   Tue Jul 23 15:08:56 2013 +0300

    Revert "WaE: "HAVE_GCC_ATTRIBUTE_WARN_UNUSED" is not defined"
    
    Nope, that caused warning: unknown attribute 'warn_unused' ignored with Clang.
    
    This reverts commit 68c8dcec1f8689191e1be3366ec3c127096ae4d4.

diff --git a/include/sal/types.h b/include/sal/types.h
index 7e3a0b6..9ce2cef 100644
--- a/include/sal/types.h
+++ b/include/sal/types.h
@@ -555,7 +555,7 @@ template< typename T1, typename T2 > inline T1 static_int_cast(T2 n) {
 
 */
 
-#if defined HAVE_GCC_ATTRIBUTE_WARN_UNUSED
+#if HAVE_GCC_ATTRIBUTE_WARN_UNUSED
 #define SAL_WARN_UNUSED __attribute__((warn_unused))
 #elif defined __clang__
 #define SAL_WARN_UNUSED __attribute__((annotate("lo_warn_unused")))


More information about the Libreoffice-commits mailing list