From 9f79365c3b183278d14352ba6241c7d4ec274984 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 9 Oct 2018 14:36:25 -0400 Subject: [PATCH] Fix warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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] --- test/api/test-multithread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/api/test-multithread.c b/test/api/test-multithread.c index 58a637cae..af5e8f9a6 100644 --- a/test/api/test-multithread.c +++ b/test/api/test-multithread.c @@ -34,8 +34,8 @@ #include #include -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;