From 93345edcbea49bdf0e22f26b5b74a23e601dfab4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 13 May 2012 16:01:08 +0200 Subject: [PATCH] Fix warnings --- src/hb-fallback-shape.cc | 4 ++-- src/hb-private.hh | 54 ++++++++++++++++++++++++------------------------ 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/hb-fallback-shape.cc b/src/hb-fallback-shape.cc index 6822d2e..20ea43e 100644 --- a/src/hb-fallback-shape.cc +++ b/src/hb-fallback-shape.cc @@ -31,8 +31,8 @@ hb_bool_t _hb_fallback_shape (hb_font_t *font, hb_buffer_t *buffer, - const hb_feature_t *features, - unsigned int num_features) + const hb_feature_t *features HB_UNUSED, + unsigned int num_features HB_UNUSED) { buffer->guess_properties (); diff --git a/src/hb-private.hh b/src/hb-private.hh index 0423dd4..aa86072 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -548,14 +548,14 @@ _hb_debug_msg_va (const char *what, fprintf (stderr, "\n"); } template <> inline void -_hb_debug_msg_va<0> (const char *what, - const void *obj, - const char *func, - bool indented, - unsigned int level, - int level_dir, - const char *message, - va_list ap) {} +_hb_debug_msg_va<0> (const char *what HB_UNUSED, + const void *obj HB_UNUSED, + const char *func HB_UNUSED, + bool indented HB_UNUSED, + unsigned int level HB_UNUSED, + int level_dir HB_UNUSED, + const char *message HB_UNUSED, + va_list ap HB_UNUSED) {} template inline void _hb_debug_msg (const char *what, @@ -582,22 +582,22 @@ _hb_debug_msg (const char *what, va_end (ap); } template <> inline void -_hb_debug_msg<0> (const char *what, - const void *obj, - const char *func, - bool indented, - unsigned int level, - int level_dir, - const char *message, +_hb_debug_msg<0> (const char *what HB_UNUSED, + const void *obj HB_UNUSED, + const char *func HB_UNUSED, + bool indented HB_UNUSED, + unsigned int level HB_UNUSED, + int level_dir HB_UNUSED, + const char *message HB_UNUSED, ...) HB_PRINTF_FUNC(7, 8); template <> inline void -_hb_debug_msg<0> (const char *what, - const void *obj, - const char *func, - bool indented, - unsigned int level, - int level_dir, - const char *message, +_hb_debug_msg<0> (const char *what HB_UNUSED, + const void *obj HB_UNUSED, + const char *func HB_UNUSED, + bool indented HB_UNUSED, + unsigned int level HB_UNUSED, + int level_dir HB_UNUSED, + const char *message HB_UNUSED, ...) {} #define DEBUG_MSG_LEVEL(WHAT, OBJ, LEVEL, LEVEL_DIR, ...) _hb_debug_msg (#WHAT, (OBJ), NULL, TRUE, (LEVEL), (LEVEL_DIR), __VA_ARGS__) @@ -658,11 +658,11 @@ struct hb_auto_trace_t { }; template <> /* Optimize when tracing is disabled */ struct hb_auto_trace_t<0> { - explicit inline hb_auto_trace_t (unsigned int *plevel_, - const char *what, - const void *obj, - const char *func, - const char *message, + explicit inline hb_auto_trace_t (unsigned int *plevel_ HB_UNUSED, + const char *what HB_UNUSED, + const void *obj HB_UNUSED, + const char *func HB_UNUSED, + const char *message HB_UNUSED, ...) {} template -- 2.7.4