From abea5ded667c42421e5d0e01cd580f0cb76d6093 Mon Sep 17 00:00:00 2001 From: caktux Date: Sun, 21 Dec 2014 00:14:20 -0500 Subject: [PATCH] fix 'Value stored to 'x' is never read' in neth --- neth/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neth/main.cpp b/neth/main.cpp index 1eac7fb1f..599461dcb 100644 --- a/neth/main.cpp +++ b/neth/main.cpp @@ -1023,7 +1023,7 @@ void print_in_middle(WINDOW *win, int starty, int startx, int width, string str, length = str.length(); temp = (width - length) / 2; - x = startx + (int)temp; + x = x + (int)temp; wattron(win, color); mvwprintw(win, y, x, "%s", str.c_str()); wattroff(win, color);