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 | 770c90cdb56fa14289bcecbe3e9fc94b35233a6e (patch) | |
tree | f1535ef20df7dc5a9288bc54c5b12850c7f02692 /gdb/tui | |
parent | b7bb15bc1265522fcdc5637273d020779eaeb284 (diff) | |
download | gdb-770c90cdb56fa14289bcecbe3e9fc94b35233a6e.zip gdb-770c90cdb56fa14289bcecbe3e9fc94b35233a6e.tar.gz gdb-770c90cdb56fa14289bcecbe3e9fc94b35233a6e.tar.bz2 |
* tuiWin.c (_newHeightOk): Fix compilation warnings.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/tui/tuiWin.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog index a7d3f43..9660ebb 100644 --- a/gdb/tui/ChangeLog +++ b/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 diff --git a/gdb/tui/tuiWin.c b/gdb/tui/tuiWin.c index aa829ec..fe3b8e0 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) |