mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
Fix bunch of unused parameter warnings
Show up with gcc -O0. There's a few more but those are functions that need to be filled in. Maybe this is a lost battle...
This commit is contained in:
parent
b2e1ec374c
commit
39bd07aed5
29 changed files with 73 additions and 65 deletions
|
@ -176,9 +176,9 @@ print ('}')
|
|||
print ()
|
||||
|
||||
print ('void')
|
||||
print ('_hb_preprocess_text_vowel_constraints (const hb_ot_shape_plan_t *plan,')
|
||||
print ('_hb_preprocess_text_vowel_constraints (const hb_ot_shape_plan_t *plan HB_UNUSED,')
|
||||
print ('\t\t\t\t hb_buffer_t *buffer,')
|
||||
print ('\t\t\t\t hb_font_t *font)')
|
||||
print ('\t\t\t\t hb_font_t *font HB_UNUSED)')
|
||||
print ('{')
|
||||
print (' /* UGLY UGLY UGLY business of adding dotted-circle in the middle of')
|
||||
print (' * vowel-sequences that look like another vowel. Data for each script')
|
||||
|
|
|
@ -377,7 +377,10 @@ struct Entry
|
|||
/* Note, we don't recurse-sanitize data because we don't access it.
|
||||
* That said, in our DEFINE_SIZE_STATIC we access T::static_size,
|
||||
* which ensures that data has a simple sanitize(). To be determined
|
||||
* if I need to remove that as well. */
|
||||
* if I need to remove that as well.
|
||||
*
|
||||
* XXX Because we are a template, our DEFINE_SIZE_STATIC assertion
|
||||
* wouldn't be checked. */
|
||||
return_trace (c->check_struct (this));
|
||||
}
|
||||
|
||||
|
@ -394,7 +397,7 @@ struct Entry
|
|||
template <>
|
||||
struct Entry<void>
|
||||
{
|
||||
inline bool sanitize (hb_sanitize_context_t *c, unsigned int count) const
|
||||
inline bool sanitize (hb_sanitize_context_t *c, unsigned int count /*XXX Unused?*/) const
|
||||
{
|
||||
TRACE_SANITIZE (this);
|
||||
return_trace (c->check_struct (this));
|
||||
|
|
|
@ -163,7 +163,7 @@ struct KerxSubTableFormat1
|
|||
kernAction (&table->machine + table->kernAction),
|
||||
depth (0) {}
|
||||
|
||||
inline bool is_actionable (StateTableDriver<EntryData> *driver,
|
||||
inline bool is_actionable (StateTableDriver<EntryData> *driver HB_UNUSED,
|
||||
const Entry<EntryData> *entry)
|
||||
{
|
||||
return entry->data.kernActionIndex != 0xFFFF;
|
||||
|
@ -365,7 +365,7 @@ struct KerxSubTableFormat4
|
|||
mark_set (false),
|
||||
mark (0) {}
|
||||
|
||||
inline bool is_actionable (StateTableDriver<EntryData> *driver,
|
||||
inline bool is_actionable (StateTableDriver<EntryData> *driver HB_UNUSED,
|
||||
const Entry<EntryData> *entry)
|
||||
{
|
||||
return entry->data.ankrActionIndex != 0xFFFF;
|
||||
|
|
|
@ -65,11 +65,11 @@ struct RearrangementSubtable
|
|||
Verb = 0x000F, /* The type of rearrangement specified. */
|
||||
};
|
||||
|
||||
inline driver_context_t (const RearrangementSubtable *table) :
|
||||
inline driver_context_t (const RearrangementSubtable *table HB_UNUSED) :
|
||||
ret (false),
|
||||
start (0), end (0) {}
|
||||
|
||||
inline bool is_actionable (StateTableDriver<EntryData> *driver,
|
||||
inline bool is_actionable (StateTableDriver<EntryData> *driver HB_UNUSED,
|
||||
const Entry<EntryData> *entry)
|
||||
{
|
||||
return (entry->flags & Verb) && start < end;
|
||||
|
@ -363,7 +363,7 @@ struct LigatureSubtable
|
|||
ligature (table+table->ligature),
|
||||
match_length (0) {}
|
||||
|
||||
inline bool is_actionable (StateTableDriver<EntryData> *driver,
|
||||
inline bool is_actionable (StateTableDriver<EntryData> *driver HB_UNUSED,
|
||||
const Entry<EntryData> *entry)
|
||||
{
|
||||
return entry->flags & PerformAction;
|
||||
|
@ -620,7 +620,7 @@ struct InsertionSubtable
|
|||
mark (0),
|
||||
insertionAction (table+table->insertionAction) {}
|
||||
|
||||
inline bool is_actionable (StateTableDriver<EntryData> *driver,
|
||||
inline bool is_actionable (StateTableDriver<EntryData> *driver HB_UNUSED,
|
||||
const Entry<EntryData> *entry)
|
||||
{
|
||||
return (entry->flags & (CurrentInsertCount | MarkedInsertCount)) &&
|
||||
|
@ -937,7 +937,7 @@ struct Chain
|
|||
|
||||
inline unsigned int get_size (void) const { return length; }
|
||||
|
||||
inline bool sanitize (hb_sanitize_context_t *c, unsigned int version) const
|
||||
inline bool sanitize (hb_sanitize_context_t *c, unsigned int version HB_UNUSED) const
|
||||
{
|
||||
TRACE_SANITIZE (this);
|
||||
if (!length.sanitize (c) ||
|
||||
|
|
|
@ -666,7 +666,7 @@ _hb_face_builder_data_reference_blob (hb_face_builder_data_t *data)
|
|||
}
|
||||
|
||||
static hb_blob_t *
|
||||
_hb_face_builder_reference_table (hb_face_t *face, hb_tag_t tag, void *user_data)
|
||||
_hb_face_builder_reference_table (hb_face_t *face HB_UNUSED, hb_tag_t tag, void *user_data)
|
||||
{
|
||||
hb_face_builder_data_t *data = (hb_face_builder_data_t *) user_data;
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ hb_font_get_font_v_extents_default (hb_font_t *font,
|
|||
static hb_bool_t
|
||||
hb_font_get_nominal_glyph_nil (hb_font_t *font HB_UNUSED,
|
||||
void *font_data HB_UNUSED,
|
||||
hb_codepoint_t unicode,
|
||||
hb_codepoint_t unicode HB_UNUSED,
|
||||
hb_codepoint_t *glyph,
|
||||
void *user_data HB_UNUSED)
|
||||
{
|
||||
|
@ -142,8 +142,8 @@ hb_font_get_nominal_glyphs_default (hb_font_t *font,
|
|||
static hb_bool_t
|
||||
hb_font_get_variation_glyph_nil (hb_font_t *font HB_UNUSED,
|
||||
void *font_data HB_UNUSED,
|
||||
hb_codepoint_t unicode,
|
||||
hb_codepoint_t variation_selector,
|
||||
hb_codepoint_t unicode HB_UNUSED,
|
||||
hb_codepoint_t variation_selector HB_UNUSED,
|
||||
hb_codepoint_t *glyph,
|
||||
void *user_data HB_UNUSED)
|
||||
{
|
||||
|
@ -276,7 +276,7 @@ hb_font_get_glyph_v_advances_default (hb_font_t* font,
|
|||
static hb_bool_t
|
||||
hb_font_get_glyph_h_origin_nil (hb_font_t *font HB_UNUSED,
|
||||
void *font_data HB_UNUSED,
|
||||
hb_codepoint_t glyph,
|
||||
hb_codepoint_t glyph HB_UNUSED,
|
||||
hb_position_t *x,
|
||||
hb_position_t *y,
|
||||
void *user_data HB_UNUSED)
|
||||
|
@ -301,7 +301,7 @@ hb_font_get_glyph_h_origin_default (hb_font_t *font,
|
|||
static hb_bool_t
|
||||
hb_font_get_glyph_v_origin_nil (hb_font_t *font HB_UNUSED,
|
||||
void *font_data HB_UNUSED,
|
||||
hb_codepoint_t glyph,
|
||||
hb_codepoint_t glyph HB_UNUSED,
|
||||
hb_position_t *x,
|
||||
hb_position_t *y,
|
||||
void *user_data HB_UNUSED)
|
||||
|
@ -326,8 +326,8 @@ hb_font_get_glyph_v_origin_default (hb_font_t *font,
|
|||
static hb_position_t
|
||||
hb_font_get_glyph_h_kerning_nil (hb_font_t *font HB_UNUSED,
|
||||
void *font_data HB_UNUSED,
|
||||
hb_codepoint_t left_glyph,
|
||||
hb_codepoint_t right_glyph,
|
||||
hb_codepoint_t left_glyph HB_UNUSED,
|
||||
hb_codepoint_t right_glyph HB_UNUSED,
|
||||
void *user_data HB_UNUSED)
|
||||
{
|
||||
return 0;
|
||||
|
@ -345,8 +345,8 @@ hb_font_get_glyph_h_kerning_default (hb_font_t *font,
|
|||
static hb_position_t
|
||||
hb_font_get_glyph_v_kerning_nil (hb_font_t *font HB_UNUSED,
|
||||
void *font_data HB_UNUSED,
|
||||
hb_codepoint_t top_glyph,
|
||||
hb_codepoint_t bottom_glyph,
|
||||
hb_codepoint_t top_glyph HB_UNUSED,
|
||||
hb_codepoint_t bottom_glyph HB_UNUSED,
|
||||
void *user_data HB_UNUSED)
|
||||
{
|
||||
return 0;
|
||||
|
@ -364,7 +364,7 @@ hb_font_get_glyph_v_kerning_default (hb_font_t *font,
|
|||
static hb_bool_t
|
||||
hb_font_get_glyph_extents_nil (hb_font_t *font HB_UNUSED,
|
||||
void *font_data HB_UNUSED,
|
||||
hb_codepoint_t glyph,
|
||||
hb_codepoint_t glyph HB_UNUSED,
|
||||
hb_glyph_extents_t *extents,
|
||||
void *user_data HB_UNUSED)
|
||||
{
|
||||
|
@ -389,8 +389,8 @@ hb_font_get_glyph_extents_default (hb_font_t *font,
|
|||
static hb_bool_t
|
||||
hb_font_get_glyph_contour_point_nil (hb_font_t *font HB_UNUSED,
|
||||
void *font_data HB_UNUSED,
|
||||
hb_codepoint_t glyph,
|
||||
unsigned int point_index,
|
||||
hb_codepoint_t glyph HB_UNUSED,
|
||||
unsigned int point_index HB_UNUSED,
|
||||
hb_position_t *x,
|
||||
hb_position_t *y,
|
||||
void *user_data HB_UNUSED)
|
||||
|
@ -416,7 +416,7 @@ hb_font_get_glyph_contour_point_default (hb_font_t *font,
|
|||
static hb_bool_t
|
||||
hb_font_get_glyph_name_nil (hb_font_t *font HB_UNUSED,
|
||||
void *font_data HB_UNUSED,
|
||||
hb_codepoint_t glyph,
|
||||
hb_codepoint_t glyph HB_UNUSED,
|
||||
char *name, unsigned int size,
|
||||
void *user_data HB_UNUSED)
|
||||
{
|
||||
|
@ -436,7 +436,8 @@ hb_font_get_glyph_name_default (hb_font_t *font,
|
|||
static hb_bool_t
|
||||
hb_font_get_glyph_from_name_nil (hb_font_t *font HB_UNUSED,
|
||||
void *font_data HB_UNUSED,
|
||||
const char *name, int len, /* -1 means nul-terminated */
|
||||
const char *name HB_UNUSED,
|
||||
int len HB_UNUSED, /* -1 means nul-terminated */
|
||||
hb_codepoint_t *glyph,
|
||||
void *user_data HB_UNUSED)
|
||||
{
|
||||
|
|
|
@ -197,11 +197,14 @@ _hb_graphite2_shaper_font_data_destroy (hb_graphite2_font_data_t *data HB_UNUSED
|
|||
{
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* hb_graphite2_font_get_gr_font:
|
||||
*
|
||||
* Since: 0.9.10
|
||||
* Deprecated: 1.4.2
|
||||
*/
|
||||
gr_font *
|
||||
hb_graphite2_font_get_gr_font (hb_font_t *font)
|
||||
hb_graphite2_font_get_gr_font (hb_font_t *font HB_UNUSED)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -243,7 +246,7 @@ struct hb_graphite2_cluster_t {
|
|||
};
|
||||
|
||||
hb_bool_t
|
||||
_hb_graphite2_shape (hb_shape_plan_t *shape_plan,
|
||||
_hb_graphite2_shape (hb_shape_plan_t *shape_plan HB_UNUSED,
|
||||
hb_font_t *font,
|
||||
hb_buffer_t *buffer,
|
||||
const hb_feature_t *features,
|
||||
|
|
|
@ -136,7 +136,7 @@ struct hb_dispatch_context_t
|
|||
enum { max_debug_depth = MaxDebugDepth };
|
||||
typedef Return return_t;
|
||||
template <typename T, typename F>
|
||||
inline bool may_dispatch (const T *obj, const F *format) { return true; }
|
||||
inline bool may_dispatch (const T *obj HB_UNUSED, const F *format HB_UNUSED) { return true; }
|
||||
static return_t no_dispatch_return_value (void) { return Context::default_return_value (); }
|
||||
};
|
||||
|
||||
|
@ -235,7 +235,7 @@ struct hb_sanitize_context_t :
|
|||
|
||||
inline const char *get_name (void) { return "SANITIZE"; }
|
||||
template <typename T, typename F>
|
||||
inline bool may_dispatch (const T *obj, const F *format)
|
||||
inline bool may_dispatch (const T *obj HB_UNUSED, const F *format)
|
||||
{ return format->sanitize (this); }
|
||||
template <typename T>
|
||||
inline return_t dispatch (const T &obj) { return obj.sanitize (this); }
|
||||
|
|
|
@ -166,7 +166,7 @@ struct IndexSubtable
|
|||
}
|
||||
}
|
||||
|
||||
inline bool get_extents (hb_glyph_extents_t *extents) const
|
||||
inline bool get_extents (hb_glyph_extents_t *extents HB_UNUSED) const
|
||||
{
|
||||
switch (u.header.indexFormat) {
|
||||
case 2: case 5: /* TODO */
|
||||
|
|
|
@ -47,7 +47,7 @@ struct loca
|
|||
|
||||
static const hb_tag_t tableTag = HB_OT_TAG_loca;
|
||||
|
||||
inline bool sanitize (hb_sanitize_context_t *c) const
|
||||
inline bool sanitize (hb_sanitize_context_t *c HB_UNUSED) const
|
||||
{
|
||||
TRACE_SANITIZE (this);
|
||||
return_trace (true);
|
||||
|
@ -70,7 +70,7 @@ struct glyf
|
|||
{
|
||||
static const hb_tag_t tableTag = HB_OT_TAG_glyf;
|
||||
|
||||
inline bool sanitize (hb_sanitize_context_t *c) const
|
||||
inline bool sanitize (hb_sanitize_context_t *c HB_UNUSED) const
|
||||
{
|
||||
TRACE_SANITIZE (this);
|
||||
/* We don't check for anything specific here. The users of the
|
||||
|
|
|
@ -56,7 +56,7 @@ struct LongMetric
|
|||
template <typename T, typename H>
|
||||
struct hmtxvmtx
|
||||
{
|
||||
inline bool sanitize (hb_sanitize_context_t *c) const
|
||||
inline bool sanitize (hb_sanitize_context_t *c HB_UNUSED) const
|
||||
{
|
||||
TRACE_SANITIZE (this);
|
||||
/* We don't check for anything specific here. The users of the
|
||||
|
|
|
@ -1715,7 +1715,7 @@ GPOS::position_start (hb_font_t *font HB_UNUSED, hb_buffer_t *buffer)
|
|||
}
|
||||
|
||||
void
|
||||
GPOS::position_finish_advances (hb_font_t *font HB_UNUSED, hb_buffer_t *buffer)
|
||||
GPOS::position_finish_advances (hb_font_t *font HB_UNUSED, hb_buffer_t *buffer HB_UNUSED)
|
||||
{
|
||||
//_hb_buffer_assert_gsubgpos_vars (buffer);
|
||||
}
|
||||
|
|
|
@ -631,7 +631,7 @@ struct MathVariants
|
|||
inline const MathGlyphConstruction &
|
||||
get_glyph_construction (hb_codepoint_t glyph,
|
||||
hb_direction_t direction,
|
||||
hb_font_t *font) const
|
||||
hb_font_t *font HB_UNUSED) const
|
||||
{
|
||||
bool vertical = HB_DIRECTION_IS_VERTICAL (direction);
|
||||
unsigned int count = vertical ? vertGlyphCount : horizGlyphCount;
|
||||
|
|
|
@ -117,7 +117,7 @@ struct maxp
|
|||
return result;
|
||||
}
|
||||
|
||||
static inline void drop_hint_fields (hb_subset_plan_t *plan, maxp *maxp_prime)
|
||||
static inline void drop_hint_fields (hb_subset_plan_t *plan HB_UNUSED, maxp *maxp_prime)
|
||||
{
|
||||
if (maxp_prime->version.major == 1)
|
||||
{
|
||||
|
|
|
@ -220,9 +220,9 @@ struct ManifestLookup
|
|||
typedef OT::ArrayOf<ManifestLookup> Manifest;
|
||||
|
||||
static bool
|
||||
arabic_fallback_plan_init_win1256 (arabic_fallback_plan_t *fallback_plan,
|
||||
const hb_ot_shape_plan_t *plan,
|
||||
hb_font_t *font)
|
||||
arabic_fallback_plan_init_win1256 (arabic_fallback_plan_t *fallback_plan HB_UNUSED,
|
||||
const hb_ot_shape_plan_t *plan HB_UNUSED,
|
||||
hb_font_t *font HB_UNUSED)
|
||||
{
|
||||
#ifdef HB_WITH_WIN1256
|
||||
/* Does this font look like it's Windows-1256-encoded? */
|
||||
|
|
|
@ -416,7 +416,7 @@ retry:
|
|||
|
||||
static void
|
||||
record_stch (const hb_ot_shape_plan_t *plan,
|
||||
hb_font_t *font,
|
||||
hb_font_t *font HB_UNUSED,
|
||||
hb_buffer_t *buffer)
|
||||
{
|
||||
const arabic_shape_plan_t *arabic_plan = (const arabic_shape_plan_t *) plan->data;
|
||||
|
@ -440,7 +440,7 @@ record_stch (const hb_ot_shape_plan_t *plan,
|
|||
}
|
||||
|
||||
static void
|
||||
apply_stch (const hb_ot_shape_plan_t *plan,
|
||||
apply_stch (const hb_ot_shape_plan_t *plan HB_UNUSED,
|
||||
hb_buffer_t *buffer,
|
||||
hb_font_t *font)
|
||||
{
|
||||
|
@ -626,7 +626,7 @@ info_is_mcm (const hb_glyph_info_t &info)
|
|||
}
|
||||
|
||||
static void
|
||||
reorder_marks_arabic (const hb_ot_shape_plan_t *plan,
|
||||
reorder_marks_arabic (const hb_ot_shape_plan_t *plan HB_UNUSED,
|
||||
hb_buffer_t *buffer,
|
||||
unsigned int start,
|
||||
unsigned int end)
|
||||
|
|
|
@ -128,7 +128,7 @@ is_zero_width_char (hb_font_t *font,
|
|||
}
|
||||
|
||||
static void
|
||||
preprocess_text_hangul (const hb_ot_shape_plan_t *plan,
|
||||
preprocess_text_hangul (const hb_ot_shape_plan_t *plan HB_UNUSED,
|
||||
hb_buffer_t *buffer,
|
||||
hb_font_t *font)
|
||||
{
|
||||
|
|
|
@ -267,7 +267,7 @@ setup_syllables (const hb_ot_shape_plan_t *plan HB_UNUSED,
|
|||
|
||||
static void
|
||||
reorder_consonant_syllable (const hb_ot_shape_plan_t *plan,
|
||||
hb_face_t *face,
|
||||
hb_face_t *face HB_UNUSED,
|
||||
hb_buffer_t *buffer,
|
||||
unsigned int start, unsigned int end)
|
||||
{
|
||||
|
|
|
@ -274,8 +274,8 @@ initial_reordering_consonant_syllable (hb_buffer_t *buffer,
|
|||
}
|
||||
|
||||
static void
|
||||
initial_reordering_syllable (const hb_ot_shape_plan_t *plan,
|
||||
hb_face_t *face,
|
||||
initial_reordering_syllable (const hb_ot_shape_plan_t *plan HB_UNUSED,
|
||||
hb_face_t *face HB_UNUSED,
|
||||
hb_buffer_t *buffer,
|
||||
unsigned int start, unsigned int end)
|
||||
{
|
||||
|
@ -362,7 +362,7 @@ reorder (const hb_ot_shape_plan_t *plan,
|
|||
}
|
||||
|
||||
static void
|
||||
clear_syllables (const hb_ot_shape_plan_t *plan,
|
||||
clear_syllables (const hb_ot_shape_plan_t *plan HB_UNUSED,
|
||||
hb_font_t *font HB_UNUSED,
|
||||
hb_buffer_t *buffer)
|
||||
{
|
||||
|
|
|
@ -379,7 +379,7 @@ setup_syllables (const hb_ot_shape_plan_t *plan,
|
|||
}
|
||||
|
||||
static void
|
||||
clear_substitution_flags (const hb_ot_shape_plan_t *plan,
|
||||
clear_substitution_flags (const hb_ot_shape_plan_t *plan HB_UNUSED,
|
||||
hb_font_t *font HB_UNUSED,
|
||||
hb_buffer_t *buffer)
|
||||
{
|
||||
|
@ -391,7 +391,7 @@ clear_substitution_flags (const hb_ot_shape_plan_t *plan,
|
|||
|
||||
static void
|
||||
record_rphf (const hb_ot_shape_plan_t *plan,
|
||||
hb_font_t *font,
|
||||
hb_font_t *font HB_UNUSED,
|
||||
hb_buffer_t *buffer)
|
||||
{
|
||||
const use_shape_plan_t *use_plan = (const use_shape_plan_t *) plan->data;
|
||||
|
@ -413,8 +413,8 @@ record_rphf (const hb_ot_shape_plan_t *plan,
|
|||
}
|
||||
|
||||
static void
|
||||
record_pref (const hb_ot_shape_plan_t *plan,
|
||||
hb_font_t *font,
|
||||
record_pref (const hb_ot_shape_plan_t *plan HB_UNUSED,
|
||||
hb_font_t *font HB_UNUSED,
|
||||
hb_buffer_t *buffer)
|
||||
{
|
||||
hb_glyph_info_t *info = buffer->info;
|
||||
|
|
|
@ -30,9 +30,9 @@ _output_with_dotted_circle (hb_buffer_t *buffer)
|
|||
}
|
||||
|
||||
void
|
||||
_hb_preprocess_text_vowel_constraints (const hb_ot_shape_plan_t *plan,
|
||||
_hb_preprocess_text_vowel_constraints (const hb_ot_shape_plan_t *plan HB_UNUSED,
|
||||
hb_buffer_t *buffer,
|
||||
hb_font_t *font)
|
||||
hb_font_t *font HB_UNUSED)
|
||||
{
|
||||
/* UGLY UGLY UGLY business of adding dotted-circle in the middle of
|
||||
* vowel-sequences that look like another vowel. Data for each script
|
||||
|
|
|
@ -192,7 +192,7 @@ zero_mark_advances (hb_buffer_t *buffer,
|
|||
}
|
||||
|
||||
static inline void
|
||||
position_mark (const hb_ot_shape_plan_t *plan,
|
||||
position_mark (const hb_ot_shape_plan_t *plan HB_UNUSED,
|
||||
hb_font_t *font,
|
||||
hb_buffer_t *buffer,
|
||||
hb_glyph_extents_t &base_extents,
|
||||
|
@ -472,7 +472,7 @@ _hb_ot_shape_fallback_kern (const hb_ot_shape_plan_t *plan,
|
|||
|
||||
/* Adjusts width of various spaces. */
|
||||
void
|
||||
_hb_ot_shape_fallback_spaces (const hb_ot_shape_plan_t *plan,
|
||||
_hb_ot_shape_fallback_spaces (const hb_ot_shape_plan_t *plan HB_UNUSED,
|
||||
hb_font_t *font,
|
||||
hb_buffer_t *buffer)
|
||||
{
|
||||
|
|
|
@ -213,7 +213,9 @@ decompose_current_character (const hb_ot_shape_normalize_context_t *c, bool shor
|
|||
}
|
||||
|
||||
static inline void
|
||||
handle_variation_selector_cluster (const hb_ot_shape_normalize_context_t *c, unsigned int end, bool short_circuit)
|
||||
handle_variation_selector_cluster (const hb_ot_shape_normalize_context_t *c,
|
||||
unsigned int end,
|
||||
bool short_circuit HB_UNUSED)
|
||||
{
|
||||
/* TODO Currently if there's a variation-selector we give-up, it's just too hard. */
|
||||
hb_buffer_t * const buffer = c->buffer;
|
||||
|
|
|
@ -276,7 +276,7 @@ _hb_ot_shaper_font_data_create (hb_font_t *font HB_UNUSED)
|
|||
}
|
||||
|
||||
void
|
||||
_hb_ot_shaper_font_data_destroy (hb_ot_font_data_t *data)
|
||||
_hb_ot_shaper_font_data_destroy (hb_ot_font_data_t *data HB_UNUSED)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -242,7 +242,6 @@ hb_ot_tag_from_language (hb_language_t language)
|
|||
static void
|
||||
hb_ot_tags_from_language (const char *lang_str,
|
||||
const char *limit,
|
||||
const char *private_use_subtag,
|
||||
unsigned int *count,
|
||||
hb_tag_t *tags)
|
||||
{
|
||||
|
@ -389,7 +388,7 @@ hb_ot_tags_from_script_and_language (hb_script_t script,
|
|||
needs_language = parse_private_use_subtag (private_use_subtag, language_count, language_tags, "-hbot", TOUPPER);
|
||||
|
||||
if (needs_language && language_count && language_tags && *language_count)
|
||||
hb_ot_tags_from_language (lang_str, limit, private_use_subtag, language_count, language_tags);
|
||||
hb_ot_tags_from_language (lang_str, limit, language_count, language_tags);
|
||||
}
|
||||
|
||||
if (needs_script && script_count && script_tags && *script_count)
|
||||
|
|
|
@ -70,7 +70,7 @@ struct VORG
|
|||
return defaultVertOriginY;
|
||||
}
|
||||
|
||||
inline bool _subset (const hb_subset_plan_t *plan,
|
||||
inline bool _subset (const hb_subset_plan_t *plan HB_UNUSED,
|
||||
const VORG *vorg_table,
|
||||
const hb_vector_t<VertOriginMetric> &subset_metrics,
|
||||
unsigned int dest_sz,
|
||||
|
|
|
@ -391,7 +391,7 @@ hb_set_symmetric_difference (hb_set_t *set,
|
|||
* Deprecated: 1.6.1
|
||||
**/
|
||||
void
|
||||
hb_set_invert (hb_set_t *set)
|
||||
hb_set_invert (hb_set_t *set HB_UNUSED)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -441,7 +441,7 @@ hb_non_global_user_features_present (const hb_feature_t *user_features,
|
|||
}
|
||||
|
||||
static inline hb_bool_t
|
||||
hb_coords_present (const int *coords,
|
||||
hb_coords_present (const int *coords HB_UNUSED,
|
||||
unsigned int num_coords)
|
||||
{
|
||||
return num_coords != 0;
|
||||
|
|
|
@ -365,7 +365,7 @@ struct hb_latin1_t
|
|||
prev (const codepoint_t *text,
|
||||
const codepoint_t *start HB_UNUSED,
|
||||
hb_codepoint_t *unicode,
|
||||
hb_codepoint_t replacement)
|
||||
hb_codepoint_t replacement HB_UNUSED)
|
||||
{
|
||||
*unicode = *--text;
|
||||
return text;
|
||||
|
|
Loading…
Add table
Reference in a new issue