Minor, fix -Weverthing bot warnings (#1210)
This commit is contained in:
parent
d27e5ec3a2
commit
bf5088b3dc
@ -92,14 +92,14 @@ fixture_init (fixture_t *fixture, gconstpointer user_data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
fixture_finish (fixture_t *fixture, gconstpointer user_data)
|
fixture_finish (fixture_t *fixture, gconstpointer user_data HB_UNUSED)
|
||||||
{
|
{
|
||||||
hb_buffer_destroy (fixture->buffer);
|
hb_buffer_destroy (fixture->buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_buffer_properties (fixture_t *fixture, gconstpointer user_data)
|
test_buffer_properties (fixture_t *fixture, gconstpointer user_data HB_UNUSED)
|
||||||
{
|
{
|
||||||
hb_buffer_t *b = fixture->buffer;
|
hb_buffer_t *b = fixture->buffer;
|
||||||
hb_unicode_funcs_t *ufuncs;
|
hb_unicode_funcs_t *ufuncs;
|
||||||
@ -294,7 +294,7 @@ test_buffer_contents (fixture_t *fixture, gconstpointer user_data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_buffer_positions (fixture_t *fixture, gconstpointer user_data)
|
test_buffer_positions (fixture_t *fixture, gconstpointer user_data HB_UNUSED)
|
||||||
{
|
{
|
||||||
hb_buffer_t *b = fixture->buffer;
|
hb_buffer_t *b = fixture->buffer;
|
||||||
unsigned int i, len, len2;
|
unsigned int i, len, len2;
|
||||||
@ -319,7 +319,7 @@ test_buffer_positions (fixture_t *fixture, gconstpointer user_data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_buffer_allocation (fixture_t *fixture, gconstpointer user_data)
|
test_buffer_allocation (fixture_t *fixture, gconstpointer user_data HB_UNUSED)
|
||||||
{
|
{
|
||||||
hb_buffer_t *b = fixture->buffer;
|
hb_buffer_t *b = fixture->buffer;
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ static int num_iters = 200;
|
|||||||
static hb_font_t *font;
|
static hb_font_t *font;
|
||||||
static hb_buffer_t *ref_buffer;
|
static hb_buffer_t *ref_buffer;
|
||||||
|
|
||||||
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
|
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
fill_the_buffer (hb_buffer_t *buffer)
|
fill_the_buffer (hb_buffer_t *buffer)
|
||||||
@ -105,7 +105,6 @@ static void
|
|||||||
test_body (void)
|
test_body (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int num_threads = 30;
|
|
||||||
pthread_t *threads = calloc (num_threads, sizeof (pthread_t));
|
pthread_t *threads = calloc (num_threads, sizeof (pthread_t));
|
||||||
hb_buffer_t **buffers = calloc (num_threads, sizeof (hb_buffer_t *));
|
hb_buffer_t **buffers = calloc (num_threads, sizeof (hb_buffer_t *));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user