From patchwork Sat Aug 27 13:21:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg Dietsche X-Patchwork-Id: 1103792 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7RDTXE5003171 for ; Sat, 27 Aug 2011 13:29:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751812Ab1H0N3d (ORCPT ); Sat, 27 Aug 2011 09:29:33 -0400 Received: from que21.charter.net ([209.225.8.22]:54711 "EHLO que21.charter.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751612Ab1H0N3d (ORCPT ); Sat, 27 Aug 2011 09:29:33 -0400 Received: from imp09 ([10.20.200.9]) by mta31.charter.net (InterMail vM.7.09.02.04 201-2219-117-106-20090629) with ESMTP id <20110827132138.JSLM3994.mta31.charter.net@imp09>; Sat, 27 Aug 2011 09:21:38 -0400 Received: from www.farmergreg.com ([96.42.32.177]) by imp09 with smtp.charter.net id RRMd1h00F3pHlLY05RMdJk; Sat, 27 Aug 2011 09:21:38 -0400 X-Authority-Analysis: v=1.1 cv=L1BYdMBFPEvrb1U4o1gj35Y72n0OWZIL8AeNhXtfs6g= c=1 sm=1 a=ExM1WqayQvgA:10 a=lDGNyK2vIvEA:10 a=IkcTkHD0fZMA:10 a=xzrYXqw+0zwiO4gHSXHcAg==:17 a=XVqM_vi4Q2xFPZ2IuoMA:9 a=bOStr5X7D6J5xGqZnuAA:7 a=QEXdDO2ut3YA:10 a=xzrYXqw+0zwiO4gHSXHcAg==:117 Received: from red.farmergreg.com ([10.0.0.50] helo=red) by www.farmergreg.com with esmtp (Exim 4.72) (envelope-from ) id 1QxIpL-0004hN-MP; Sat, 27 Aug 2011 08:21:35 -0500 Received: from greg by red with local (Exim 4.76) (envelope-from ) id 1QxIpN-00076N-FG; Sat, 27 Aug 2011 08:21:37 -0500 From: Greg Dietsche To: mmarek@suse.cz Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Dietsche Subject: [PATCH] kconfig: fix unused var warnings Date: Sat, 27 Aug 2011 08:21:11 -0500 Message-Id: <1314451271-27151-1-git-send-email-Gregory.Dietsche@cuw.edu> X-Mailer: git-send-email 1.7.5.4 MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Sat, 27 Aug 2011 13:29:33 +0000 (UTC) This patch corrects two warnings generated by `make menuconfig`: textbox.c:323:9: warning: variable ‘x’ set but not used textbox.c:323:6: warning: variable ‘y’ set but not used Signed-off-by: Greg Dietsche --- scripts/kconfig/lxdialog/textbox.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/kconfig/lxdialog/textbox.c b/scripts/kconfig/lxdialog/textbox.c index c704712..f619f4b 100644 --- a/scripts/kconfig/lxdialog/textbox.c +++ b/scripts/kconfig/lxdialog/textbox.c @@ -320,7 +320,6 @@ static void print_page(WINDOW * win, int height, int width) */ static void print_line(WINDOW * win, int row, int width) { - int y, x; char *line; line = get_line(); @@ -329,11 +328,14 @@ static void print_line(WINDOW * win, int row, int width) waddch(win, ' '); waddnstr(win, line, MIN(strlen(line), width - 2)); - getyx(win, y, x); /* Clear 'residue' of previous line */ #if OLD_NCURSES { int i; + int __attribute__ ((unused)) y; + int x; + + getyx(win, y, x); for (i = 0; i < width - x; i++) waddch(win, ' '); }