Browse Source

fix 'Value stored to 'x' is never read' in neth

cl-refactor
caktux 10 years ago
parent
commit
abea5ded66
  1. 2
      neth/main.cpp

2
neth/main.cpp

@ -1023,7 +1023,7 @@ void print_in_middle(WINDOW *win, int starty, int startx, int width, string str,
length = str.length(); length = str.length();
temp = (width - length) / 2; temp = (width - length) / 2;
x = startx + (int)temp; x = x + (int)temp;
wattron(win, color); wattron(win, color);
mvwprintw(win, y, x, "%s", str.c_str()); mvwprintw(win, y, x, "%s", str.c_str());
wattroff(win, color); wattroff(win, color);

Loading…
Cancel
Save