[HarfBuzz] harfbuzz-ng: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Wed Feb 17 12:15:43 PST 2010


 src/hb-private.h |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit bc7830e4259755ce7549025c6f5bf750e78c2ff1
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Wed Feb 17 15:14:57 2010 -0500

    Use __attribute__((unused)) only with gcc 4 and later
    
    See discussion at:
    https://bugzilla.gnome.org/show_bug.cgi?id=610183

diff --git a/src/hb-private.h b/src/hb-private.h
index d86c0c2..854a208 100644
--- a/src/hb-private.h
+++ b/src/hb-private.h
@@ -184,14 +184,17 @@ typedef int hb_mutex_t;
 #endif
 
 #if __GNUC__ >= 3
-#define HB_GNUC_UNUSED	__attribute__((unused))
 #define HB_GNUC_PURE	__attribute__((pure))
 #define HB_GNUC_CONST	__attribute__((const))
 #else
-#define HB_GNUC_UNUSED
 #define HB_GNUC_PURE
 #define HB_GNUC_CONST
 #endif
+#if __GNUC__ >= 4
+#define HB_GNUC_UNUSED	__attribute__((unused))
+#else
+#define HB_GNUC_UNUSED
+#endif
 
 
 #if (defined(__WIN32__) && !defined(__WINE__)) || defined(_MSC_VER)



More information about the HarfBuzz mailing list