This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: Fix TUI compilation warning
- From: Stephane Carrez <stcarrez at nerim dot fr>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 02 Sep 2002 23:35:41 +0200
- Subject: [PATCH]: Fix TUI compilation warning
Hi!
Committed this patch to fix the last TUI warning.
Stephane
2002-09-02 Stephane Carrez <stcarrez@nerim.fr>
* tuiWin.c (_newHeightOk): Fix compilation warnings.
Index: tuiWin.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiWin.c,v
retrieving revision 1.22
diff -u -p -r1.22 tuiWin.c
--- tuiWin.c 1 Sep 2002 17:23:59 -0000 1.22
+++ tuiWin.c 2 Sep 2002 19:31:34 -0000
@@ -1446,7 +1446,7 @@ _newHeightOk (TuiWinInfoPtr primaryWinIn
}
else
{
- int curTotalHeight, totalHeight, minHeight;
+ int curTotalHeight, totalHeight, minHeight = 0;
TuiWinInfoPtr firstWin, secondWin;
if (curLayout == SRC_DISASSEM_COMMAND)
@@ -1465,7 +1465,7 @@ _newHeightOk (TuiWinInfoPtr primaryWinIn
** line that the first and second windows share, and add one
** for the locator.
*/
- curTotalHeight =
+ totalHeight = curTotalHeight =
(firstWin->generic.height + secondWin->generic.height - 1)
+ cmdWin->generic.height + 1 /*locator */ ;
if (primaryWinInfo == cmdWin)