Fix warning

How come this one is not generated by clang everything bot?!

../../../test/api/test-multithread.c:37:26: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 static char *font_path = "fonts/Inconsolata-Regular.abc.ttf";
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../test/api/test-multithread.c:38:21: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
This commit is contained in:
Behdad Esfahbod 2018-10-09 14:36:25 -04:00
parent 24382debe8
commit 9f79365c3b
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@
#include <hb-ot.h>
#include <glib.h>
static char *font_path = "fonts/Inconsolata-Regular.abc.ttf";
static char *text = "abc";
static const char *font_path = "fonts/Inconsolata-Regular.abc.ttf";
static const char *text = "abc";
static int num_threads = 30;
static int num_iters = 200;