Fix warnings

This commit is contained in:
Behdad Esfahbod 2012-05-13 16:01:08 +02:00
parent eace47b173
commit 93345edcbe
2 changed files with 29 additions and 29 deletions

View File

@ -31,8 +31,8 @@
hb_bool_t hb_bool_t
_hb_fallback_shape (hb_font_t *font, _hb_fallback_shape (hb_font_t *font,
hb_buffer_t *buffer, hb_buffer_t *buffer,
const hb_feature_t *features, const hb_feature_t *features HB_UNUSED,
unsigned int num_features) unsigned int num_features HB_UNUSED)
{ {
buffer->guess_properties (); buffer->guess_properties ();

View File

@ -548,14 +548,14 @@ _hb_debug_msg_va (const char *what,
fprintf (stderr, "\n"); fprintf (stderr, "\n");
} }
template <> inline void template <> inline void
_hb_debug_msg_va<0> (const char *what, _hb_debug_msg_va<0> (const char *what HB_UNUSED,
const void *obj, const void *obj HB_UNUSED,
const char *func, const char *func HB_UNUSED,
bool indented, bool indented HB_UNUSED,
unsigned int level, unsigned int level HB_UNUSED,
int level_dir, int level_dir HB_UNUSED,
const char *message, const char *message HB_UNUSED,
va_list ap) {} va_list ap HB_UNUSED) {}
template <int max_level> inline void template <int max_level> inline void
_hb_debug_msg (const char *what, _hb_debug_msg (const char *what,
@ -582,22 +582,22 @@ _hb_debug_msg (const char *what,
va_end (ap); va_end (ap);
} }
template <> inline void template <> inline void
_hb_debug_msg<0> (const char *what, _hb_debug_msg<0> (const char *what HB_UNUSED,
const void *obj, const void *obj HB_UNUSED,
const char *func, const char *func HB_UNUSED,
bool indented, bool indented HB_UNUSED,
unsigned int level, unsigned int level HB_UNUSED,
int level_dir, int level_dir HB_UNUSED,
const char *message, const char *message HB_UNUSED,
...) HB_PRINTF_FUNC(7, 8); ...) HB_PRINTF_FUNC(7, 8);
template <> inline void template <> inline void
_hb_debug_msg<0> (const char *what, _hb_debug_msg<0> (const char *what HB_UNUSED,
const void *obj, const void *obj HB_UNUSED,
const char *func, const char *func HB_UNUSED,
bool indented, bool indented HB_UNUSED,
unsigned int level, unsigned int level HB_UNUSED,
int level_dir, int level_dir HB_UNUSED,
const char *message, const char *message HB_UNUSED,
...) {} ...) {}
#define DEBUG_MSG_LEVEL(WHAT, OBJ, LEVEL, LEVEL_DIR, ...) _hb_debug_msg<HB_DEBUG_##WHAT> (#WHAT, (OBJ), NULL, TRUE, (LEVEL), (LEVEL_DIR), __VA_ARGS__) #define DEBUG_MSG_LEVEL(WHAT, OBJ, LEVEL, LEVEL_DIR, ...) _hb_debug_msg<HB_DEBUG_##WHAT> (#WHAT, (OBJ), NULL, TRUE, (LEVEL), (LEVEL_DIR), __VA_ARGS__)
@ -658,11 +658,11 @@ struct hb_auto_trace_t {
}; };
template <> /* Optimize when tracing is disabled */ template <> /* Optimize when tracing is disabled */
struct hb_auto_trace_t<0> { struct hb_auto_trace_t<0> {
explicit inline hb_auto_trace_t (unsigned int *plevel_, explicit inline hb_auto_trace_t (unsigned int *plevel_ HB_UNUSED,
const char *what, const char *what HB_UNUSED,
const void *obj, const void *obj HB_UNUSED,
const char *func, const char *func HB_UNUSED,
const char *message, const char *message HB_UNUSED,
...) {} ...) {}
template <typename T> template <typename T>