1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00

Gcc complains too much when build without X11 and NCurses

This commit is contained in:
Nikolas Garofil 2009-08-04 22:13:06 +02:00
parent fc54981da8
commit c99e092246
2 changed files with 5 additions and 2 deletions

View File

@ -6584,6 +6584,7 @@ static inline void set_foreground_color(long c)
attron(COLOR_PAIR(c)); attron(COLOR_PAIR(c));
} }
#endif /* NCURSES */ #endif /* NCURSES */
UNUSED(c);
return; return;
} }
@ -7175,8 +7176,8 @@ static int draw_line(char *s, int special_index)
} }
#endif /* NCURSES */ #endif /* NCURSES */
draw_string(s); draw_string(s);
//'special_index - special_index' instead of 0 otherwise gcc complains about not using special_index when build without X11 UNUSED(special_index);
return special_index - special_index; return 0;
} }
static void draw_text(void) static void draw_text(void)

View File

@ -363,6 +363,8 @@ void new_fg(char *buf, long c)
if (output_methods & TO_NCURSES) if (output_methods & TO_NCURSES)
new_special(buf, FG)->arg = c; new_special(buf, FG)->arg = c;
#endif /* NCURSES */ #endif /* NCURSES */
UNUSED(buf);
UNUSED(c);
} }
#ifdef X11 #ifdef X11