Fix more warnings

This commit is contained in:
Behdad Esfahbod 2012-05-13 16:20:10 +02:00
parent 9f377ed321
commit 3f18236a03
3 changed files with 6 additions and 6 deletions

View File

@ -403,7 +403,7 @@ struct CoverageFormat2
for (i = 0; i < count; i++) {
const RangeRecord &range = rangeRecord[i];
if (range.value <= index &&
index < range.value + (range.end - range.start) &&
index < (unsigned int) range.value + (range.end - range.start) &&
range.intersects (glyphs))
return true;
else if (index < range.value)

View File

@ -1178,7 +1178,7 @@ GSUB::substitute_start (hb_buffer_t *buffer)
}
void
GSUB::substitute_finish (hb_buffer_t *buffer)
GSUB::substitute_finish (hb_buffer_t *buffer HB_UNUSED)
{
}

View File

@ -188,7 +188,7 @@ _hb_ot_shape_complex_normalization_preference_indic (void)
void
_hb_ot_shape_complex_setup_masks_indic (hb_ot_map_t *map HB_UNUSED,
hb_buffer_t *buffer,
hb_font_t *font)
hb_font_t *font HB_UNUSED)
{
HB_BUFFER_ALLOCATE_VAR (buffer, indic_category);
HB_BUFFER_ALLOCATE_VAR (buffer, indic_position);
@ -513,7 +513,7 @@ static void
initial_reordering_non_indic (const hb_ot_map_t *map HB_UNUSED,
hb_buffer_t *buffer HB_UNUSED,
hb_mask_t *mask_array HB_UNUSED,
unsigned int start, unsigned int end)
unsigned int start HB_UNUSED, unsigned int end HB_UNUSED)
{
/* Nothing to do right now. If we ever switch to using the output
* buffer in the reordering process, we'd need to next_glyph() here. */
@ -523,7 +523,7 @@ initial_reordering_non_indic (const hb_ot_map_t *map HB_UNUSED,
static void
initial_reordering (const hb_ot_map_t *map,
hb_face_t *face,
hb_face_t *face HB_UNUSED,
hb_buffer_t *buffer,
void *user_data HB_UNUSED)
{
@ -824,7 +824,7 @@ final_reordering_syllable (hb_buffer_t *buffer, hb_mask_t *mask_array,
static void
final_reordering (const hb_ot_map_t *map,
hb_face_t *face,
hb_face_t *face HB_UNUSED,
hb_buffer_t *buffer,
void *user_data HB_UNUSED)
{