From 9199174dca5b05b0a62bdfc745a9c3663808e020 Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Wed, 21 Jun 2023 22:43:52 -0700 Subject: [PATCH] Cast TTF_FontFaceFamilyName from const char * ... ...to char * Trying to avoid warning Shin-ichi reported warning: assignment discards 'const' qualifier from pointer target type --- src/tuxpaint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 31635f015..22c148a8d 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -26834,7 +26834,7 @@ static void set_label_fonts() /* FIXME: 2009/09/13 TTF_FontFaceFamilyName() appends random "\n" at the end of the returned string. Should investigate why, and when corrected, remove the code that deals whith the ending "\n"s in ttffont */ - ttffont = TTF_FontFaceFamilyName(getfonthandle(i)->ttf_font); + ttffont = (char *) TTF_FontFaceFamilyName(getfonthandle(i)->ttf_font); for (c = 0; c < strlen(ttffont); c++) if (ttffont[c] == '\n') ttffont[c] = '\0';