More warning fixes

This commit is contained in:
Behdad Esfahbod 2018-09-30 18:01:20 +02:00
parent 5c65ed800d
commit be0b2ed316
1 changed files with 7 additions and 7 deletions

View File

@ -33,8 +33,8 @@
#include <hb-ft.h> #include <hb-ft.h>
#include <hb-ot.h> #include <hb-ot.h>
const char *text = "طرح‌نَما"; static const char *text = "طرح‌نَما";
const char *path = static const char *path =
#if defined(__linux__) #if defined(__linux__)
"/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf"; "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf";
#elif defined(_WIN32) || defined(_WIN64) #elif defined(_WIN32) || defined(_WIN64)
@ -43,11 +43,11 @@ const char *path =
"/Library/Fonts/Tahoma.ttf"; "/Library/Fonts/Tahoma.ttf";
#endif #endif
int num_threads = 30; static int num_threads = 30;
int num_iters = 200; static int num_iters = 200;
hb_font_t *font; static hb_font_t *font;
hb_buffer_t *ref_buffer; static hb_buffer_t *ref_buffer;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
@ -102,7 +102,7 @@ thread_func (void *data)
} }
void void
test_body () test_body (void)
{ {
int i; int i;
int num_threads = 30; int num_threads = 30;