patch 7.4.1774
Problem: Cterm true color feature has warnings.
Solution: Add type casts.
diff --git a/src/term.c b/src/term.c
index d85cd53..29b48e9 100644
--- a/src/term.c
+++ b/src/term.c
@@ -1383,9 +1383,8 @@
{
int len;
int pos;
- char *color;
- ignored = fgets(line, LINE_LEN, fd);
+ (void)fgets(line, LINE_LEN, fd);
len = strlen(line);
if (len <= 1 || line[len-1] != '\n')
@@ -1397,9 +1396,7 @@
if (i != 3)
continue;
- color = line + pos;
-
- if (STRICMP(color, name) == 0)
+ if (STRICMP(line + pos, name) == 0)
{
fclose(fd);
return (guicolor_T) RGB(r, g, b);