Added -Wall to GCC options

Fixed compiler warnings
This commit is contained in:
James Booth
2012-09-10 22:57:42 +01:00
parent b7c1209744
commit 6b1b035d92
7 changed files with 17 additions and 27 deletions

View File

@@ -39,8 +39,7 @@ static void _title_bar_draw_status(void);
void
create_title_bar(void)
{
int rows, cols;
getmaxyx(stdscr, rows, cols);
int cols = getmaxx(stdscr);
title_bar = newwin(1, cols, 0, 0);
wbkgd(title_bar, COLOUR_BAR_DEF);
@@ -61,8 +60,7 @@ title_bar_title(void)
void
title_bar_resize(void)
{
int rows, cols;
getmaxyx(stdscr, rows, cols);
int cols = getmaxx(stdscr);
wresize(title_bar, 1, cols);
wbkgd(title_bar, COLOUR_BAR_DEF);
@@ -173,8 +171,7 @@ title_bar_draw(void)
static void
_title_bar_draw_status(void)
{
int rows, cols;
getmaxyx(stdscr, rows, cols);
int cols = getmaxx(stdscr);
wattron(title_bar, COLOUR_BAR_DRAW);
mvwaddch(title_bar, 0, cols - 14, '[');