diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2002-09-02 19:34:18 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2002-09-02 19:34:18 +0000 |
commit | a48be5099c720ab315f183bcf646e543416fe619 (patch) | |
tree | 36929aefc0c934d3ad3d83a897b0f37c16faafa3 /gdb/tui/tuiWin.c | |
parent | 128f66c617dc24e73399bb409a250072d0d3a8ba (diff) | |
download | gdb-a48be5099c720ab315f183bcf646e543416fe619.tar.gz |
* tuiWin.c (_newHeightOk): Fix compilation warnings.
Diffstat (limited to 'gdb/tui/tuiWin.c')
-rw-r--r-- | gdb/tui/tuiWin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tuiWin.c b/gdb/tui/tuiWin.c index aa829ec78e4..fe3b8e054be 100644 --- a/gdb/tui/tuiWin.c +++ b/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) |