From 450dfac672b8d69908ad8efb391e6ebf87984c4c Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Wed, 4 Jan 2006 14:26:06 +0000 Subject: [PATCH] fixed gcc4 warnings svn path=/trunk/; revision=20560 --- rosapps/demos/ddraw/ddraw.xml | 2 +- rosapps/sysutils/regexpl/ShellCommandValue.cpp | 6 +++--- rosapps/tests/combotst/combotst.c | 2 +- rosapps/tests/hivetest/hivetest.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rosapps/demos/ddraw/ddraw.xml b/rosapps/demos/ddraw/ddraw.xml index 7d01b2da744..98a0fb36db8 100644 --- a/rosapps/demos/ddraw/ddraw.xml +++ b/rosapps/demos/ddraw/ddraw.xml @@ -1,4 +1,4 @@ - + 0x0501 0x0501 diff --git a/rosapps/sysutils/regexpl/ShellCommandValue.cpp b/rosapps/sysutils/regexpl/ShellCommandValue.cpp index 06e180e13f5..44174048b07 100644 --- a/rosapps/sysutils/regexpl/ShellCommandValue.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandValue.cpp @@ -243,7 +243,7 @@ CheckValueArgument: default: { TCHAR Buffer[256]; - DWORD i; + DWORD i, j; for (i = 0 ; i < dwValueSize ; i++) { if (i%16 == 0) @@ -266,7 +266,7 @@ CheckValueArgument: if (i && (i%16 == 15)) { // if this is the last byte in line // Dump text representation - for (DWORD j = i-15; j <= i; j += blnUnicodeDump?2:1)\ + for (j = i-15; j <= i; j += blnUnicodeDump?2:1)\ { if ((j%8 == 0)&&(j%16 != 0)) { // this is the additional space between 7th and 8th byte in current line @@ -321,7 +321,7 @@ CheckValueArgument: if (k && (k%16 == 15)) { // if this is the last byte in line ASSERT((k-15)%16 == 0); // k-15 must point at begin of last line - for (DWORD j = k-15; j < i; j += j += blnUnicodeDump?2:1) + for (j = k-15; j < i; j += blnUnicodeDump?2:1) { if (blnUnicodeDump&&(j+1 >= i)) { // ok, buffer size is odd number, so we don't display last byte. diff --git a/rosapps/tests/combotst/combotst.c b/rosapps/tests/combotst/combotst.c index 27f1cc788d5..db6effa3cfc 100644 --- a/rosapps/tests/combotst/combotst.c +++ b/rosapps/tests/combotst/combotst.c @@ -545,7 +545,7 @@ WndProc ( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) PrintTextXY("CBN_EDITCHANGE notification",NOTIFYX,NOTIFYY,27,srect); break; - case CBN_ERRSPACE: + case (WORD)CBN_ERRSPACE: ScrollWindow (hwnd, 0, SCROLLAMOUNT, &srect, &srect); PrintTextXY("CBN_ERRSPACE notification",NOTIFYX,NOTIFYY,25,srect); break; diff --git a/rosapps/tests/hivetest/hivetest.c b/rosapps/tests/hivetest/hivetest.c index 8de1b45c1b8..5d13432aec2 100644 --- a/rosapps/tests/hivetest/hivetest.c +++ b/rosapps/tests/hivetest/hivetest.c @@ -804,7 +804,7 @@ void test8(void) LONG dwError; TOKEN_PRIVILEGES NewPrivileges; HANDLE Token,hKey; - LUID Luid; + LUID Luid = {0}; BOOLEAN bRes; Status=NtOpenProcessToken(GetCurrentProcess() ,TOKEN_ADJUST_PRIVILEGES,&Token); -- 2.17.1