HB_UNUSED is unneeded on static inline functions
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Tue, 4 May 2010 02:27:56 +0000 (22:27 -0400)
committerJeff Muizelaar <jmuizelaar@mozilla.com>
Tue, 4 May 2010 02:27:56 +0000 (22:27 -0400)
src/hb-object-private.h
src/hb-open-type-private.hh
src/hb-private.h

index 937b1df..2f5429f 100644 (file)
@@ -62,7 +62,7 @@ typedef struct {
 #define HB_DEBUG_OBJECT HB_DEBUG+0
 #endif
 
-static HB_UNUSED inline hb_bool_t /* always returns TRUE */
+static inline hb_bool_t /* always returns TRUE */
 _hb_object_debug_out (const void *obj,
                      hb_reference_count_t *ref_count,
                      const char *function)
index bbd88a7..d4c2fd5 100644 (file)
@@ -171,7 +171,7 @@ _hb_sanitize_fini (hb_sanitize_context_t *context HB_UNUSED,
   hb_blob_unlock (blob);
 }
 
-static HB_UNUSED inline bool
+static inline bool
 _hb_sanitize_check (SANITIZE_ARG_DEF,
                    const char *base,
                    unsigned int len)
@@ -191,7 +191,7 @@ _hb_sanitize_check (SANITIZE_ARG_DEF,
   return ret;
 }
 
-static HB_UNUSED inline bool
+static inline bool
 _hb_sanitize_array (SANITIZE_ARG_DEF,
                    const char *base,
                    unsigned int record_size,
@@ -211,7 +211,7 @@ _hb_sanitize_array (SANITIZE_ARG_DEF,
   return HB_LIKELY (!overflows) && _hb_sanitize_check (SANITIZE_ARG, base, record_size * len);
 }
 
-static HB_UNUSED inline bool
+static inline bool
 _hb_sanitize_edit (SANITIZE_ARG_DEF,
                   const char *base HB_UNUSED,
                   unsigned int len HB_UNUSED)
index 9130b04..1ee98c7 100644 (file)
  * in libgcc in case a target does not have one, which should be just as
  * good as the open-coded solution below, (which is "HACKMEM 169").
  */
-static HB_UNUSED inline unsigned int
+static inline unsigned int
 _hb_popcount32 (uint32_t mask)
 {
 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
@@ -240,7 +240,7 @@ typedef int hb_mutex_t;
 #define HB_DEBUG 0
 #endif
 
-static HB_UNUSED inline hb_bool_t /* always returns TRUE */
+static inline hb_bool_t /* always returns TRUE */
 _hb_trace (const char *what,
           const char *function,
           const void *obj,