André Hentschel : user32: Remove dead initializations (clang).

Alexandre Julliard julliard at winehq.org
Wed Jul 6 13:31:08 CDT 2011


Module: wine
Branch: master
Commit: 5ca020b9d8c0cf994cae6642d8f0ee0302068aea
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5ca020b9d8c0cf994cae6642d8f0ee0302068aea

Author: André Hentschel <nerv at dawncrow.de>
Date:   Tue Jul  5 21:37:39 2011 +0200

user32: Remove dead initializations (clang).

---

 dlls/user32/edit.c       |    4 ++--
 dlls/user32/tests/menu.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index 8f59d95..87f8682 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -2063,8 +2063,8 @@ static INT EDIT_PaintText(EDITSTATE *es, HDC dc, INT x, INT y, INT line, INT col
  */
 static void EDIT_PaintLine(EDITSTATE *es, HDC dc, INT line, BOOL rev)
 {
-	INT s = es->selection_start;
-	INT e = es->selection_end;
+	INT s;
+	INT e;
 	INT li;
 	INT ll;
 	INT x;
diff --git a/dlls/user32/tests/menu.c b/dlls/user32/tests/menu.c
index e29039a..823e19e 100644
--- a/dlls/user32/tests/menu.c
+++ b/dlls/user32/tests/menu.c
@@ -1082,7 +1082,7 @@ static void test_menu_iteminfo( void )
   void *txt, *init, *empty, *string;
   HBITMAP hbm = CreateBitmap(1,1,1,1,NULL);
   char stringA[0x80];
-  HMENU hmenu, submenu=CreateMenu();
+  HMENU hmenu, submenu;
   HBITMAP dummy_hbm = (HBITMAP)(ULONG_PTR)0xdeadbeef;
 
   do {




More information about the wine-cvs mailing list