Fix warnings
This commit is contained in:
parent
d5943407a4
commit
0e206de986
|
@ -118,7 +118,7 @@ struct Null <Type> \
|
||||||
|
|
||||||
#if HB_DEBUG_SANITIZE
|
#if HB_DEBUG_SANITIZE
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#define TRACE_SANITIZE_ARG_DEF , unsigned int sanitize_depth
|
#define TRACE_SANITIZE_ARG_DEF , unsigned int sanitize_depth HB_GNUC_UNUSED
|
||||||
#define TRACE_SANITIZE_ARG , sanitize_depth + 1
|
#define TRACE_SANITIZE_ARG , sanitize_depth + 1
|
||||||
#define TRACE_SANITIZE_ARG_INIT , 1
|
#define TRACE_SANITIZE_ARG_INIT , 1
|
||||||
#define TRACE_SANITIZE() \
|
#define TRACE_SANITIZE() \
|
||||||
|
|
|
@ -133,7 +133,7 @@ struct CaretValueFormat3
|
||||||
{
|
{
|
||||||
friend struct CaretValue;
|
friend struct CaretValue;
|
||||||
|
|
||||||
inline int get_caret_value (hb_ot_layout_context_t *context, hb_codepoint_t glyph_id) const
|
inline int get_caret_value (hb_ot_layout_context_t *context, hb_codepoint_t glyph_id HB_GNUC_UNUSED) const
|
||||||
{
|
{
|
||||||
/* TODO vertical */
|
/* TODO vertical */
|
||||||
return context->font->x_scale * coordinate / 0x10000 +
|
return context->font->x_scale * coordinate / 0x10000 +
|
||||||
|
|
|
@ -133,7 +133,7 @@ struct AnchorFormat1
|
||||||
friend struct Anchor;
|
friend struct Anchor;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
inline void get_anchor (hb_ot_layout_context_t *context, hb_codepoint_t glyph_id,
|
inline void get_anchor (hb_ot_layout_context_t *context, hb_codepoint_t glyph_id HB_GNUC_UNUSED,
|
||||||
hb_position_t *x, hb_position_t *y) const
|
hb_position_t *x, hb_position_t *y) const
|
||||||
{
|
{
|
||||||
*x = _hb_16dot16_mul_trunc (context->font->x_scale, xCoordinate);
|
*x = _hb_16dot16_mul_trunc (context->font->x_scale, xCoordinate);
|
||||||
|
@ -184,7 +184,7 @@ struct AnchorFormat3
|
||||||
friend struct Anchor;
|
friend struct Anchor;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
inline void get_anchor (hb_ot_layout_context_t *context, hb_codepoint_t glyph_id,
|
inline void get_anchor (hb_ot_layout_context_t *context, hb_codepoint_t glyph_id HB_GNUC_UNUSED,
|
||||||
hb_position_t *x, hb_position_t *y) const
|
hb_position_t *x, hb_position_t *y) const
|
||||||
{
|
{
|
||||||
*x = _hb_16dot16_mul_trunc (context->font->x_scale, xCoordinate);
|
*x = _hb_16dot16_mul_trunc (context->font->x_scale, xCoordinate);
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
#if HB_DEBUG_APPLY
|
#if HB_DEBUG_APPLY
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#define TRACE_APPLY_ARG_DEF , unsigned int apply_depth
|
#define TRACE_APPLY_ARG_DEF , unsigned int apply_depth HB_GNUC_UNUSED
|
||||||
#define TRACE_APPLY_ARG , apply_depth + 1
|
#define TRACE_APPLY_ARG , apply_depth + 1
|
||||||
#define TRACE_APPLY_ARG_INIT , 1
|
#define TRACE_APPLY_ARG_INIT , 1
|
||||||
#define TRACE_APPLY() \
|
#define TRACE_APPLY() \
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
hb_buffer_t *buffer, \
|
hb_buffer_t *buffer, \
|
||||||
unsigned int context_length HB_GNUC_UNUSED, \
|
unsigned int context_length HB_GNUC_UNUSED, \
|
||||||
unsigned int nesting_level_left HB_GNUC_UNUSED, \
|
unsigned int nesting_level_left HB_GNUC_UNUSED, \
|
||||||
unsigned int lookup_flag, \
|
unsigned int lookup_flag HB_GNUC_UNUSED, \
|
||||||
unsigned int property HB_GNUC_UNUSED /* propety of first glyph */ \
|
unsigned int property HB_GNUC_UNUSED /* propety of first glyph */ \
|
||||||
TRACE_APPLY_ARG_DEF
|
TRACE_APPLY_ARG_DEF
|
||||||
#define APPLY_ARG \
|
#define APPLY_ARG \
|
||||||
|
@ -91,7 +91,7 @@ struct ContextFuncs
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static inline bool match_glyph (hb_codepoint_t glyph_id, const USHORT &value, char *data)
|
static inline bool match_glyph (hb_codepoint_t glyph_id, const USHORT &value, char *data HB_GNUC_UNUSED)
|
||||||
{
|
{
|
||||||
return glyph_id == value;
|
return glyph_id == value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue