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

This commit is contained in:
Stephane Carrez 2002-09-02 19:34:18 +00:00
parent b7bb15bc12
commit 770c90cdb5
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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)