* tuiWin.c (_newHeightOk): Fix compilation warnings.
authorStephane Carrez <stcarrez@nerim.fr>
Mon, 2 Sep 2002 19:34:18 +0000 (19:34 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Mon, 2 Sep 2002 19:34:18 +0000 (19:34 +0000)
gdb/tui/ChangeLog
gdb/tui/tuiWin.c

index a7d3f43965f97d6df51afaac21d09083a191912c..9660ebb723a4d5ca39dab406d59e64d2db838d8b 100644 (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
index aa829ec78e4b1a7e3fb885df30645a01538592e8..fe3b8e054be1d40325aedfcd1dea40319f65e795 100644 (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)