This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]: Fix TUI compilation warning


Hi!

Committed this patch to fix the last TUI warning.

	Stephane

2002-09-02  Stephane Carrez  <stcarrez@nerim.fr>

	* tuiWin.c (_newHeightOk): Fix compilation warnings.
Index: tuiWin.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiWin.c,v
retrieving revision 1.22
diff -u -p -r1.22 tuiWin.c
--- tuiWin.c	1 Sep 2002 17:23:59 -0000	1.22
+++ tuiWin.c	2 Sep 2002 19:31:34 -0000
@@ -1446,7 +1446,7 @@ _newHeightOk (TuiWinInfoPtr primaryWinIn
 	}
       else
 	{
-	  int curTotalHeight, totalHeight, minHeight;
+	  int curTotalHeight, totalHeight, minHeight = 0;
 	  TuiWinInfoPtr firstWin, secondWin;
 
 	  if (curLayout == SRC_DISASSEM_COMMAND)
@@ -1465,7 +1465,7 @@ _newHeightOk (TuiWinInfoPtr primaryWinIn
 	     ** 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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]