Browse Source

* tuiWin.c (_newHeightOk): Fix compilation warnings.

drow-cplus-branch
Stephane Carrez 24 years ago
parent
commit
770c90cdb5
  1. 4
      gdb/tui/ChangeLog
  2. 4
      gdb/tui/tuiWin.c

4
gdb/tui/ChangeLog

@ -1,3 +1,7 @@
2002-09-02 Stephane Carrez <stcarrez@nerim.fr>
* tuiWin.c (_newHeightOk): Fix compilation warnings.
2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
* tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window

4
gdb/tui/tuiWin.c

@ -1446,7 +1446,7 @@ _newHeightOk (TuiWinInfoPtr primaryWinInfo, int newHeight)
}
else
{
int curTotalHeight, totalHeight, minHeight;
int curTotalHeight, totalHeight, minHeight = 0;
TuiWinInfoPtr firstWin, secondWin;
if (curLayout == SRC_DISASSEM_COMMAND)
@ -1465,7 +1465,7 @@ _newHeightOk (TuiWinInfoPtr primaryWinInfo, int newHeight)
** 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)

Loading…
Cancel
Save