ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
December 2008
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
31 participants
710 discussions
Start a n
N
ew thread
[dgorbachev] 37834: Fix GCC complaints about uninitialized variables (bug #3912).
by dgorbachev@svn.reactos.org
Author: dgorbachev Date: Wed Dec 3 11:38:56 2008 New Revision: 37834 URL:
http://svn.reactos.org/svn/reactos?rev=37834&view=rev
Log: Fix GCC complaints about uninitialized variables (bug #3912). Modified: trunk/reactos/lib/rtl/bitmap.c trunk/reactos/lib/sdk/crt/time/ctime.c trunk/reactos/ntoskrnl/config/ntapi.c trunk/reactos/ntoskrnl/ke/bug.c Modified: trunk/reactos/lib/rtl/bitmap.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/bitmap.c?rev=37834…
============================================================================== --- trunk/reactos/lib/rtl/bitmap.c [iso-8859-1] (original) +++ trunk/reactos/lib/rtl/bitmap.c [iso-8859-1] Wed Dec 3 11:38:56 2008 @@ -651,7 +651,8 @@ RtlFindLongestRunClear(PRTL_BITMAP BitMapHeader, PULONG StartingIndex) { - RTL_BITMAP_RUN br; + /* GCC complaints that it may be used uninitialized */ + RTL_BITMAP_RUN br = { 0, 0 }; if (RtlFindClearRuns(BitMapHeader, &br, 1, TRUE) == 1) { @@ -670,7 +671,8 @@ RtlFindLongestRunSet(PRTL_BITMAP BitMapHeader, PULONG StartingIndex) { - RTL_BITMAP_RUN br; + /* GCC complaints that it may be used uninitialized */ + RTL_BITMAP_RUN br = { 0, 0 }; if (NTDLL_FindRuns(BitMapHeader, &br, 1, TRUE, NTDLL_FindSetRun) == 1) { Modified: trunk/reactos/lib/sdk/crt/time/ctime.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/time/ctime.c?r…
============================================================================== --- trunk/reactos/lib/sdk/crt/time/ctime.c [iso-8859-1] (original) +++ trunk/reactos/lib/sdk/crt/time/ctime.c [iso-8859-1] Wed Dec 3 11:38:56 2008 @@ -1276,7 +1276,9 @@ int saved_seconds; time_t newt; time_t t; - struct tm yourtm, mytm; + + /* GCC complaints that it may be used uninitialized */ + struct tm yourtm, mytm = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; *okayp = FALSE; yourtm = *tmp; Modified: trunk/reactos/ntoskrnl/config/ntapi.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/ntapi.c?re…
============================================================================== --- trunk/reactos/ntoskrnl/config/ntapi.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/config/ntapi.c [iso-8859-1] Wed Dec 3 11:38:56 2008 @@ -612,7 +612,11 @@ REG_DELETE_VALUE_KEY_INFORMATION DeleteValueKeyInfo; REG_POST_OPERATION_INFORMATION PostOperationInfo; KPROCESSOR_MODE PreviousMode = ExGetPreviousMode(); - UNICODE_STRING ValueNameCopy = *ValueName; + + /* Workaround for GCC 4.4.0 bug #38271 */ + UNICODE_STRING ValueNameCopy = { 0, 0, NULL }; + ValueNameCopy = *ValueName; + PAGED_CODE(); /* Verify that the handle is valid and is a registry key */ Modified: trunk/reactos/ntoskrnl/ke/bug.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/bug.c?rev=3783…
============================================================================== --- trunk/reactos/ntoskrnl/ke/bug.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ke/bug.c [iso-8859-1] Wed Dec 3 11:38:56 2008 @@ -236,7 +236,9 @@ ULONG i, Addr; BOOLEAN InSystem; PVOID p; - PLDR_DATA_TABLE_ENTRY LdrEntry; + + /* GCC complaints that it may be used uninitialized */ + PLDR_DATA_TABLE_ENTRY LdrEntry = NULL; /* Loop them */ for (i = 0; i < FrameCount; i++)
16 years
1
0
0
0
[dgorbachev] 37833: Silence compiler warnings (11/11).
by dgorbachev@svn.reactos.org
Author: dgorbachev Date: Wed Dec 3 11:37:58 2008 New Revision: 37833 URL:
http://svn.reactos.org/svn/reactos?rev=37833&view=rev
Log: Silence compiler warnings (11/11). Modified: trunk/reactos/tools/cdmake/cdmake.c trunk/reactos/tools/rgenstat/rgenstat.c Modified: trunk/reactos/tools/cdmake/cdmake.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/cdmake/cdmake.c?rev=…
============================================================================== --- trunk/reactos/tools/cdmake/cdmake.c [iso-8859-1] (original) +++ trunk/reactos/tools/cdmake/cdmake.c [iso-8859-1] Wed Dec 3 11:37:58 2008 @@ -568,11 +568,11 @@ break; } - if ( (t-d->name_on_cd) < sizeof(d->name_on_cd)-1 ) + if ( (size_t)(t-d->name_on_cd) < sizeof(d->name_on_cd)-1 ) *t++ = check_for_punctuation(*s, filename); else if (!joliet) error_exit ("'%s' is not ISO-9660, aborting...", filename ); - if ( (n-d->name) < sizeof(d->name)-1 ) + if ( (size_t)(n-d->name) < sizeof(d->name)-1 ) *n++ = *s; else if (!joliet) error_exit ( "'%s' is not ISO-9660, aborting...", filename ); @@ -587,7 +587,7 @@ t = d->extension_on_cd; while ( *s != 0 ) { - if ( (t-d->extension_on_cd) < (sizeof(d->extension_on_cd)-1) ) + if ( (size_t)(t-d->extension_on_cd) < sizeof(d->extension_on_cd)-1 ) *t++ = check_for_punctuation(*s, filename); else if (!joliet) error_exit ( "'%s' is not ISO-9660, aborting...", filename ); Modified: trunk/reactos/tools/rgenstat/rgenstat.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rgenstat/rgenstat.c?…
============================================================================== --- trunk/reactos/tools/rgenstat/rgenstat.c [iso-8859-1] (original) +++ trunk/reactos/tools/rgenstat/rgenstat.c [iso-8859-1] Wed Dec 3 11:37:58 2008 @@ -59,7 +59,7 @@ static FILE *file_handle = NULL; static char *file_buffer = NULL; static unsigned int file_size = 0; -static int file_pointer = 0; +static unsigned int file_pointer = 0; static char tagname[200]; static PAPI_INFO api_info_list = NULL; @@ -752,7 +752,7 @@ PAPI_INFO api_info; PAPI_INFO next_api_info; char *buffer; - int size; + unsigned int size; int len; in = fopen(input_file, "rb");
16 years
1
0
0
0
[dgorbachev] 37832: Silence compiler warnings (10/11).
by dgorbachev@svn.reactos.org
Author: dgorbachev Date: Wed Dec 3 11:37:23 2008 New Revision: 37832 URL:
http://svn.reactos.org/svn/reactos?rev=37832&view=rev
Log: Silence compiler warnings (10/11). Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxdisk.c trunk/reactos/boot/freeldr/freeldr/fs/ntfs.c trunk/reactos/boot/freeldr/freeldr/reactos/reactos.c trunk/reactos/boot/freeldr/freeldr/ui/gui.c trunk/reactos/boot/freeldr/freeldr/windows/wlmemory.c Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c [iso-8859-1] Wed Dec 3 11:37:23 2008 @@ -92,7 +92,7 @@ static VOID __StallExecutionProcessor(ULONG Loops) { - volatile register unsigned int i; + register volatile unsigned int i; for (i = 0; i < Loops; i++); } Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxdisk.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxdisk.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxdisk.c [iso-8859-1] Wed Dec 3 11:37:23 2008 @@ -544,11 +544,11 @@ } else { - for (i = 15; i >= 0; i--) + for (i = 1 << 15; i; i /= 2) { - if (0 != (DrvParms.BytesPerSector & (1 << i))) + if (0 != (DrvParms.BytesPerSector & i)) { - Geometry->BytesPerSector = 1 << i; + Geometry->BytesPerSector = i; break; } } Modified: trunk/reactos/boot/freeldr/freeldr/fs/ntfs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/fs/nt…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/fs/ntfs.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/fs/ntfs.c [iso-8859-1] Wed Dec 3 11:37:23 2008 @@ -258,7 +258,7 @@ { CurrentOffset += DataRunLength * NtfsClusterSize; DataRun = NtfsDecodeRun(DataRun, &DataRunOffset, &DataRunLength); - if (DataRunLength != -1) + if (DataRunLength != (ULONGLONG)-1) { DataRunStartLCN = LastLCN + DataRunOffset; LastLCN = DataRunStartLCN; Modified: trunk/reactos/boot/freeldr/freeldr/reactos/reactos.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/react…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/reactos/reactos.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/reactos/reactos.c [iso-8859-1] Wed Dec 3 11:37:23 2008 @@ -919,7 +919,7 @@ Length = _vsnprintf(Buffer, 512, Format, ap); /* Check if we went past the buffer */ - if (Length == -1) + if (Length == -1U) { /* Terminate it if we went over-board */ Buffer[sizeof(Buffer) - 1] = '\n'; Modified: trunk/reactos/boot/freeldr/freeldr/ui/gui.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/ui/gu…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/ui/gui.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/ui/gui.c [iso-8859-1] Wed Dec 3 11:37:23 2008 @@ -99,4 +99,7 @@ GuiFadeInBackdrop, GuiFadeOut, GuiDisplayMenu,*/ + NULL, NULL, NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, NULL, NULL }; Modified: trunk/reactos/boot/freeldr/freeldr/windows/wlmemory.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/windo…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/windows/wlmemory.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/windows/wlmemory.c [iso-8859-1] Wed Dec 3 11:37:23 2008 @@ -274,7 +274,7 @@ VOID MempDisablePages() { - int i; + ULONG i; // // We need to delete kernel mapping from memory areas which are
16 years
1
0
0
0
[dgorbachev] 37831: Silence compiler warnings (9/11).
by dgorbachev@svn.reactos.org
Author: dgorbachev Date: Wed Dec 3 11:36:23 2008 New Revision: 37831 URL:
http://svn.reactos.org/svn/reactos?rev=37831&view=rev
Log: Silence compiler warnings (9/11). Modified: trunk/reactos/subsystems/win32/csrss/win32csr/conio.c trunk/reactos/subsystems/win32/csrss/win32csr/tuiconsole.c trunk/reactos/subsystems/win32/win32k/eng/gradient.c trunk/reactos/subsystems/win32/win32k/include/class.h trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c trunk/reactos/subsystems/win32/win32k/objects/xformobj.c Modified: trunk/reactos/subsystems/win32/csrss/win32csr/conio.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/win…
============================================================================== --- trunk/reactos/subsystems/win32/csrss/win32csr/conio.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/csrss/win32csr/conio.c [iso-8859-1] Wed Dec 3 11:36:23 2008 @@ -680,7 +680,7 @@ return Status; } -BOOLEAN __inline ConioGetIntersection( +__inline BOOLEAN ConioGetIntersection( RECT *Intersection, RECT *Rect1, RECT *Rect2) @@ -706,7 +706,7 @@ return TRUE; } -BOOLEAN __inline ConioGetUnion( +__inline BOOLEAN ConioGetUnion( RECT *Union, RECT *Rect1, RECT *Rect2) Modified: trunk/reactos/subsystems/win32/csrss/win32csr/tuiconsole.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/win…
============================================================================== --- trunk/reactos/subsystems/win32/csrss/win32csr/tuiconsole.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/csrss/win32csr/tuiconsole.c [iso-8859-1] Wed Dec 3 11:36:23 2008 @@ -293,7 +293,8 @@ TuiSetScreenInfo, TuiUpdateScreenInfo, TuiChangeTitle, - TuiCleanupConsole + TuiCleanupConsole, + NULL // ChangeIcon }; NTSTATUS FASTCALL Modified: trunk/reactos/subsystems/win32/win32k/eng/gradient.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/en…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/eng/gradient.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/eng/gradient.c [iso-8859-1] Wed Dec 3 11:36:23 2008 @@ -454,7 +454,7 @@ } -BOOL static +static BOOL IntEngIsNULLTriangle(TRIVERTEX *pVertex, GRADIENT_TRIANGLE *gt) { if(COMPAREVERTEX(VERTEX(Vertex1), VERTEX(Vertex2))) Modified: trunk/reactos/subsystems/win32/win32k/include/class.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/include/class.h [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/include/class.h [iso-8859-1] Wed Dec 3 11:36:23 2008 @@ -13,7 +13,7 @@ BOOL IsUnicode; } WNDPROC_INFO, *PWNDPROC_INFO; -static BOOL __inline +static __inline BOOL IsCallProcHandle(IN WNDPROC lpWndProc) { /* FIXME - check for 64 bit architectures... */ Modified: trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c [iso-8859-1] Wed Dec 3 11:36:23 2008 @@ -129,7 +129,7 @@ /*==============================================================*/ /* if format exists, returns a non zero value (pointing to format object) */ PCLIPBOARDELEMENT FASTCALL -intIsFormatAvailable(format) +intIsFormatAvailable(UINT format) { PCLIPBOARDELEMENT ret = NULL; PCLIPBOARDELEMENT ce = ClipboardData; Modified: trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c [iso-8859-1] Wed Dec 3 11:36:23 2008 @@ -294,7 +294,7 @@ return Res; } -BOOL static APIENTRY +static BOOL APIENTRY co_MsqTranslateMouseMessage(PUSER_MESSAGE_QUEUE MessageQueue, HWND hWnd, UINT FilterLow, UINT FilterHigh, PUSER_MESSAGE Message, BOOL Remove, PBOOL Freed, PWINDOW_OBJECT ScopeWin, PPOINT ScreenPoint, BOOL FromGlobalQueue, PLIST_ENTRY *Next) Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] Wed Dec 3 11:36:23 2008 @@ -241,7 +241,7 @@ } -VOID static FASTCALL +static VOID FASTCALL WinPosFindIconPos(PWINDOW_OBJECT Window, POINT *Pos) { /* FIXME */ Modified: trunk/reactos/subsystems/win32/win32k/objects/xformobj.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/xformobj.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/objects/xformobj.c [iso-8859-1] Wed Dec 3 11:36:23 2008 @@ -28,7 +28,8 @@ /* * Inline helper to calculate pfo1 * pfo2 + pfo3 * pfo4 */ -VOID FORCEINLINE +FORCEINLINE +VOID MulAdd( PFLOATOBJ pfoDest, PFLOATOBJ pfo1, @@ -48,7 +49,8 @@ /* * Inline helper to calculate pfo1 * l2 + pfo3 * l4 */ -VOID FORCEINLINE +FORCEINLINE +VOID MulAddLong( PFLOATOBJ pfoDest, PFLOATOBJ pfo1, @@ -68,7 +70,8 @@ /* * Inline helper to calculate pfo1 * pfo2 - pfo3 * pfo4 */ -VOID FORCEINLINE +FORCEINLINE +VOID MulSub( PFLOATOBJ pfoDest, PFLOATOBJ pfo1, @@ -88,7 +91,8 @@ /* * Inline helper to get the complexity hint from flAccel */ -ULONG FORCEINLINE +FORCEINLINE +ULONG HintFromAccel(ULONG flAccel) { switch (flAccel & (MX_NOTRANSLATE | MX_IDENTITYSCALE | MX_SCALE))
16 years
1
0
0
0
[dgorbachev] 37830: Silence compiler warnings (8/11).
by dgorbachev@svn.reactos.org
Author: dgorbachev Date: Wed Dec 3 11:34:49 2008 New Revision: 37830 URL:
http://svn.reactos.org/svn/reactos?rev=37830&view=rev
Log: Silence compiler warnings (8/11). Modified: trunk/reactos/base/applications/msconfig/freeldrpage.c trunk/reactos/base/applications/mscutils/devmgmt/enumdevices.c trunk/reactos/base/applications/network/whois/whois.c trunk/reactos/base/applications/sndvol32/mixer.c trunk/reactos/base/applications/sndvol32/sndvol32.c trunk/reactos/base/services/eventlog/eventlog.h trunk/reactos/base/services/eventlog/file.c trunk/reactos/base/services/eventlog/rpc.c trunk/reactos/base/shell/explorer-new/precomp.h trunk/reactos/base/shell/explorer-new/trayntfy.c trunk/reactos/base/shell/explorer-new/traywnd.c trunk/reactos/base/shell/explorer-new/undoc.h trunk/reactos/base/system/regsvr32/regsvr32.c trunk/reactos/base/system/smss/debug.c trunk/reactos/base/system/smss/smapiexec.c Modified: trunk/reactos/base/applications/msconfig/freeldrpage.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/msconfig…
============================================================================== --- trunk/reactos/base/applications/msconfig/freeldrpage.c [iso-8859-1] (original) +++ trunk/reactos/base/applications/msconfig/freeldrpage.c [iso-8859-1] Wed Dec 3 11:34:49 2008 @@ -19,9 +19,9 @@ ULONG szDefaultPos; ULONG OSConfigurationCount; BOOL UseBootIni; -}FREELDR_SETTINGS; +} FREELDR_SETTINGS; -static FREELDR_SETTINGS Settings = { 0, {0}, 0 }; +static FREELDR_SETTINGS Settings = { 0, { 0, }, 0, 0, FALSE }; BOOL Modified: trunk/reactos/base/applications/mscutils/devmgmt/enumdevices.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
============================================================================== --- trunk/reactos/base/applications/mscutils/devmgmt/enumdevices.c [iso-8859-1] (original) +++ trunk/reactos/base/applications/mscutils/devmgmt/enumdevices.c [iso-8859-1] Wed Dec 3 11:34:49 2008 @@ -162,7 +162,9 @@ } if (Ret == CR_INVALID_DATA) + { ; /*FIXME: what should we do here? */ + } /* handle other errors... */ } Modified: trunk/reactos/base/applications/network/whois/whois.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
============================================================================== --- trunk/reactos/base/applications/network/whois/whois.c [iso-8859-1] (original) +++ trunk/reactos/base/applications/network/whois/whois.c [iso-8859-1] Wed Dec 3 11:34:49 2008 @@ -85,7 +85,7 @@ struct sockaddr_in sin; struct hostent *hp; struct servent *sp; - int s; + SOCKET s; WORD wVersionRequested; WSADATA wsaData; Modified: trunk/reactos/base/applications/sndvol32/mixer.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sndvol32…
============================================================================== --- trunk/reactos/base/applications/sndvol32/mixer.c [iso-8859-1] (original) +++ trunk/reactos/base/applications/sndvol32/mixer.c [iso-8859-1] Wed Dec 3 11:34:49 2008 @@ -472,7 +472,7 @@ INT SndMixerGetDestinationCount(PSND_MIXER Mixer) { - return (Mixer->hmx ? Mixer->Caps.cDestinations : -1); + return (Mixer->hmx ? (INT)Mixer->Caps.cDestinations : -1); } BOOL Modified: trunk/reactos/base/applications/sndvol32/sndvol32.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sndvol32…
============================================================================== --- trunk/reactos/base/applications/sndvol32/sndvol32.c [iso-8859-1] (original) +++ trunk/reactos/base/applications/sndvol32/sndvol32.c [iso-8859-1] Wed Dec 3 11:34:49 2008 @@ -241,7 +241,7 @@ UpdatePrefDlgControls(PPREFERENCES_CONTEXT Context, DWORD LineID) { - UINT OldID, MixerID = 0; + INT OldID, MixerID = 0; INT DeviceCbIndex; /* select the mixer */ @@ -381,8 +381,8 @@ { if (HIWORD(wParam) == CBN_SELCHANGE) { - DWORD LineID; - DWORD Index; + INT LineID; + INT Index; Index = SendDlgItemMessage(hwndDlg, IDC_LINE, @@ -429,7 +429,7 @@ case IDC_OTHER: { INT LineCbIndex; - DWORD LineID; + INT LineID; EnableWindow(GetDlgItem(hwndDlg, IDC_LINE), Modified: trunk/reactos/base/services/eventlog/eventlog.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/eventlog/eve…
============================================================================== --- trunk/reactos/base/services/eventlog/eventlog.h [iso-8859-1] (original) +++ trunk/reactos/base/services/eventlog/eventlog.h [iso-8859-1] Wed Dec 3 11:34:49 2008 @@ -162,7 +162,7 @@ DWORD dwDataSize, LPVOID lpRawData); -void __inline LogfFreeRecord(LPVOID Rec); +__inline void LogfFreeRecord(LPVOID Rec); /* eventlog.c */ VOID PRINT_HEADER(PFILE_HEADER header); Modified: trunk/reactos/base/services/eventlog/file.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/eventlog/fil…
============================================================================== --- trunk/reactos/base/services/eventlog/file.c [iso-8859-1] (original) +++ trunk/reactos/base/services/eventlog/file.c [iso-8859-1] Wed Dec 3 11:34:49 2008 @@ -899,7 +899,7 @@ return Buffer; } -void __inline LogfFreeRecord(LPVOID Rec) +__inline void LogfFreeRecord(LPVOID Rec) { HeapFree(MyHeap, 0, Rec); } Modified: trunk/reactos/base/services/eventlog/rpc.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/eventlog/rpc…
============================================================================== --- trunk/reactos/base/services/eventlog/rpc.c [iso-8859-1] (original) +++ trunk/reactos/base/services/eventlog/rpc.c [iso-8859-1] Wed Dec 3 11:34:49 2008 @@ -343,9 +343,9 @@ DWORD MinorVersion, IELF_HANDLE *LogHandle) { - UNICODE_STRING UNCServerNameW = { 0, }; - UNICODE_STRING ModuleNameW = { 0, }; - UNICODE_STRING RegModuleNameW = { 0, }; + UNICODE_STRING UNCServerNameW = { 0, 0, NULL }; + UNICODE_STRING ModuleNameW = { 0, 0, NULL }; + UNICODE_STRING RegModuleNameW = { 0, 0, NULL }; NTSTATUS Status; if (UNCServerName && Modified: trunk/reactos/base/shell/explorer-new/precomp.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer-new/pr…
============================================================================== --- trunk/reactos/base/shell/explorer-new/precomp.h [iso-8859-1] (original) +++ trunk/reactos/base/shell/explorer-new/precomp.h [iso-8859-1] Wed Dec 3 11:34:49 2008 @@ -41,7 +41,7 @@ /* Constants for RunFileDlg */ #define RFF_CALCDIRECTORY 0x04 /* Calculates the working directory from the file name. */ -static ULONG __inline +static __inline ULONG Win32DbgPrint(const char *filename, int line, const char *lpFormat, ...) { char szMsg[512]; Modified: trunk/reactos/base/shell/explorer-new/trayntfy.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer-new/tr…
============================================================================== --- trunk/reactos/base/shell/explorer-new/trayntfy.c [iso-8859-1] (original) +++ trunk/reactos/base/shell/explorer-new/trayntfy.c [iso-8859-1] Wed Dec 3 11:34:49 2008 @@ -141,7 +141,7 @@ { WORD iLinesVisible = 0; INT i; - SIZE szMax = {0}; + SIZE szMax = { 0, 0 }; if (!This->LinesMeasured) This->LinesMeasured = TrayClockWnd_MeasureLines(This); @@ -713,7 +713,7 @@ static VOID TrayNotifyWnd_UpdateStyle(IN OUT PTRAY_NOTIFY_WND_DATA This) { - RECT rcClient = {0}; + RECT rcClient = { 0, 0, 0, 0 }; if (AdjustWindowRectEx(&rcClient, GetWindowLong(This->hWnd, @@ -758,7 +758,7 @@ if (!This->HideClock) { - SIZE szClock = {0}; + SIZE szClock = { 0, 0 }; if (Horizontal) { Modified: trunk/reactos/base/shell/explorer-new/traywnd.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer-new/tr…
============================================================================== --- trunk/reactos/base/shell/explorer-new/traywnd.c [iso-8859-1] (original) +++ trunk/reactos/base/shell/explorer-new/traywnd.c [iso-8859-1] Wed Dec 3 11:34:49 2008 @@ -992,7 +992,7 @@ ITrayWindowImpl_UpdateStartButton(IN OUT ITrayWindowImpl *This, IN HBITMAP hbmStart OPTIONAL) { - SIZE Size = {0}; + SIZE Size = { 0, 0 }; if (This->himlStartBtn == NULL || !SendMessage(This->hwndStart, @@ -1047,7 +1047,7 @@ { RECT rcClient; SIZE TraySize, StartSize; - POINT ptTrayNotify = {0}; + POINT ptTrayNotify = { 0, 0 }; BOOL Horizontal; HDWP dwp; @@ -1131,7 +1131,7 @@ /* Resize/Move the rebar control */ if (This->hwndRebar != NULL) { - POINT ptRebar = {0}; + POINT ptRebar = { 0, 0 }; SIZE szRebar; SetWindowStyle(This->hwndRebar, Modified: trunk/reactos/base/shell/explorer-new/undoc.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer-new/un…
============================================================================== --- trunk/reactos/base/shell/explorer-new/undoc.h [iso-8859-1] (original) +++ trunk/reactos/base/shell/explorer-new/undoc.h [iso-8859-1] Wed Dec 3 11:34:49 2008 @@ -127,7 +127,7 @@ BOOL WINAPI SHDesktopMessageLoop(HANDLE); #else typedef HANDLE (WINAPI *PSHCreateDesktop)(IShellDesktopTray*); -static HANDLE __inline +static __inline HANDLE SHCreateDesktop(IShellDesktopTray* sdt) { static PSHCreateDesktop Func = NULL; @@ -152,7 +152,7 @@ } typedef BOOL (WINAPI *PSHDesktopMessageLoop)(HANDLE); -static BOOL __inline +static __inline BOOL SHDesktopMessageLoop(IN HANDLE hDesktop) { static PSHDesktopMessageLoop Func = NULL; @@ -240,7 +240,7 @@ IN DWORD dwReserved); #else typedef HRESULT (WINAPI *PSHGetPerScreenResName)(LPWSTR,INT,DWORD); -static HRESULT __inline +static __inline HRESULT SHGetPerScreenResName(OUT LPWSTR lpResName, IN INT cchResName, IN DWORD dwReserved OPTIONAL) @@ -271,7 +271,7 @@ HRESULT WINAPI SHPropertyBag_ReadStream(IPropertyBag*,LPCWSTR,IStream**); #else typedef HRESULT (WINAPI *PSHPropertyBag_ReadStream)(IPropertyBag*,LPCWSTR,IStream**); -static HRESULT __inline +static __inline HRESULT SHPropertyBag_ReadStream(IN IPropertyBag *ppb, IN LPCWSTR pszPropName, OUT IStream **ppStream) Modified: trunk/reactos/base/system/regsvr32/regsvr32.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/regsvr32/regsv…
============================================================================== --- trunk/reactos/base/system/regsvr32/regsvr32.c [iso-8859-1] (original) +++ trunk/reactos/base/system/regsvr32/regsvr32.c [iso-8859-1] Wed Dec 3 11:34:49 2008 @@ -220,7 +220,7 @@ // should not be modified until FreeConvertedWideChar has been called. #ifdef UNICODE #define ConvertToWideChar(lptString) (lptString) -#define FreeConvertedWideChar(lpwString) +#define FreeConvertedWideChar(lpwString) ((void) 0) #else LPWSTR ConvertToWideChar(LPCSTR lpString) Modified: trunk/reactos/base/system/smss/debug.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/smss/debug.c?r…
============================================================================== --- trunk/reactos/base/system/smss/debug.c [iso-8859-1] (original) +++ trunk/reactos/base/system/smss/debug.c [iso-8859-1] Wed Dec 3 11:34:49 2008 @@ -71,7 +71,7 @@ IN OUT PHANDLE phServingThread OPTIONAL) { NTSTATUS Status = STATUS_SUCCESS; - UNICODE_STRING PortName = {0}; + UNICODE_STRING PortName = { 0, 0, NULL }; OBJECT_ATTRIBUTES ObjectAttributes; HANDLE Thread = (HANDLE) 0; CLIENT_ID Cid = {0, 0}; Modified: trunk/reactos/base/system/smss/smapiexec.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/smss/smapiexec…
============================================================================== --- trunk/reactos/base/system/smss/smapiexec.c [iso-8859-1] (original) +++ trunk/reactos/base/system/smss/smapiexec.c [iso-8859-1] Wed Dec 3 11:34:49 2008 @@ -41,12 +41,12 @@ PLARGE_INTEGER Timeout OPTIONAL, PRTL_USER_PROCESS_INFORMATION UserProcessInfo OPTIONAL) { - UNICODE_STRING ImagePathString = {0}; - UNICODE_STRING CommandLineString = {0}; - UNICODE_STRING SystemDirectory = {0}; + UNICODE_STRING ImagePathString = { 0, 0, NULL }; + UNICODE_STRING CommandLineString = { 0, 0, NULL }; + UNICODE_STRING SystemDirectory = { 0, 0, NULL }; PRTL_USER_PROCESS_PARAMETERS ProcessParameters = NULL; - RTL_USER_PROCESS_INFORMATION ProcessInfo = {0}; - PRTL_USER_PROCESS_INFORMATION pProcessInfo = & ProcessInfo; + RTL_USER_PROCESS_INFORMATION ProcessInfo = {0}; + PRTL_USER_PROCESS_INFORMATION pProcessInfo = & ProcessInfo; NTSTATUS Status = STATUS_SUCCESS; DPRINT("SM: %s called\n", __FUNCTION__);
16 years
1
0
0
0
[dgorbachev] 37829: Silence compiler warnings (7/11).
by dgorbachev@svn.reactos.org
Author: dgorbachev Date: Wed Dec 3 11:33:13 2008 New Revision: 37829 URL:
http://svn.reactos.org/svn/reactos?rev=37829&view=rev
Log: Silence compiler warnings (7/11). Modified: trunk/reactos/dll/cpl/console/colors.c trunk/reactos/dll/cpl/console/layout.c trunk/reactos/dll/cpl/main/mouse.c trunk/reactos/dll/cpl/timedate/ntpclient.c trunk/reactos/dll/ntdll/rtl/version.c trunk/reactos/dll/win32/kernel32/file/dir.c trunk/reactos/dll/win32/kernel32/file/file.c trunk/reactos/dll/win32/kernel32/file/mailslot.c trunk/reactos/dll/win32/kernel32/file/npipe.c trunk/reactos/dll/win32/kernel32/file/volume.c trunk/reactos/dll/win32/kernel32/misc/muldiv.c trunk/reactos/dll/win32/kernel32/misc/profile.c trunk/reactos/dll/win32/kernel32/misc/time.c trunk/reactos/dll/win32/kernel32/process/procsup.c trunk/reactos/dll/win32/kernel32/thread/tls.c trunk/reactos/dll/win32/netcfgx/netcfg_iface.c trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c trunk/reactos/dll/win32/netshell/connectmanager.c trunk/reactos/dll/win32/netshell/lanconnectui.c trunk/reactos/dll/win32/netshell/shfldr_netconnect.c trunk/reactos/dll/win32/opengl32/opengl32.c trunk/reactos/dll/win32/userenv/directory.c trunk/reactos/dll/win32/userenv/profile.c trunk/reactos/dll/win32/userenv/setup.c Modified: trunk/reactos/dll/cpl/console/colors.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/console/colors.c?r…
============================================================================== --- trunk/reactos/dll/cpl/console/colors.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/console/colors.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -116,7 +116,7 @@ break; } - if (red == -1) + if (red == -1U) { red = SendMessage(GetDlgItem(hwndDlg, IDC_UPDOWN_COLOR_RED), UDM_GETPOS, 0, 0); if (HIWORD(red)) @@ -127,7 +127,7 @@ red = LOBYTE(red); } - if (green == -1) + if (green == -1U) { green = SendMessage(GetDlgItem(hwndDlg, IDC_UPDOWN_COLOR_GREEN), UDM_GETPOS, 0, 0); if (HIWORD(green)) @@ -138,7 +138,7 @@ green = LOBYTE(green); } - if (blue == -1) + if (blue == -1U) { blue = SendMessage(GetDlgItem(hwndDlg, IDC_UPDOWN_COLOR_BLUE), UDM_GETPOS, 0, 0); if (HIWORD(blue)) Modified: trunk/reactos/dll/cpl/console/layout.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/console/layout.c?r…
============================================================================== --- trunk/reactos/dll/cpl/console/layout.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/console/layout.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -160,7 +160,7 @@ SendMessage(GetDlgItem(hwndDlg, IDC_UPDOWN_WINDOW_POS_LEFT), UDM_SETRANGE, 0, (LPARAM)MAKELONG(xres, 0)); SendMessage(GetDlgItem(hwndDlg, IDC_UPDOWN_WINDOW_POS_TOP), UDM_SETRANGE, 0, (LPARAM)MAKELONG(yres, 0)); - if (pConInfo->WindowPosition != -1) + if (pConInfo->WindowPosition != -1U) { SetDlgItemInt(hwndDlg, IDC_EDIT_WINDOW_POS_LEFT, LOWORD(pConInfo->WindowPosition), FALSE); SetDlgItemInt(hwndDlg, IDC_EDIT_WINDOW_POS_TOP, HIWORD(pConInfo->WindowPosition), FALSE); Modified: trunk/reactos/dll/cpl/main/mouse.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/mouse.c?rev=3…
============================================================================== --- trunk/reactos/dll/cpl/main/mouse.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/main/mouse.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -969,7 +969,7 @@ GetSysColor(COLOR_WINDOWTEXT)); } - if (lpdis->itemID != -1) + if (lpdis->itemID != -1U) { CopyRect(&rc, &lpdis->rcItem); rc.left += 5; Modified: trunk/reactos/dll/cpl/timedate/ntpclient.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/timedate/ntpclient…
============================================================================== --- trunk/reactos/dll/cpl/timedate/ntpclient.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/timedate/ntpclient.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -75,7 +75,7 @@ static BOOL SendData(PINFO pInfo) { - TIMEPACKET tp = {0,}; + TIMEPACKET tp = { 0, 0 }; INT Ret; ZeroMemory(&pInfo->SendPacket, sizeof(pInfo->SendPacket)); Modified: trunk/reactos/dll/ntdll/rtl/version.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/rtl/version.c?re…
============================================================================== --- trunk/reactos/dll/ntdll/rtl/version.c [iso-8859-1] (original) +++ trunk/reactos/dll/ntdll/rtl/version.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -104,7 +104,7 @@ NTSTATUS NTAPI RtlGetVersion(RTL_OSVERSIONINFOW *Info) { - ULONG i, MaxLength; + LONG i, MaxLength; if (Info->dwOSVersionInfoSize == sizeof(RTL_OSVERSIONINFOW) || Info->dwOSVersionInfoSize == sizeof(RTL_OSVERSIONINFOEXW)) Modified: trunk/reactos/dll/win32/kernel32/file/dir.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/di…
============================================================================== --- trunk/reactos/dll/win32/kernel32/file/dir.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/file/dir.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -830,10 +830,10 @@ LPSTR *lpFilePart ) { - UNICODE_STRING PathU = {0}; - UNICODE_STRING FileNameU = {0}; - UNICODE_STRING ExtensionU = {0}; - UNICODE_STRING BufferU = {0}; + UNICODE_STRING PathU = { 0, 0, NULL }; + UNICODE_STRING FileNameU = { 0, 0, NULL }; + UNICODE_STRING ExtensionU = { 0, 0, NULL }; + UNICODE_STRING BufferU = { 0, 0, NULL }; ANSI_STRING Path; ANSI_STRING FileName; ANSI_STRING Extension; Modified: trunk/reactos/dll/win32/kernel32/file/file.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/fi…
============================================================================== --- trunk/reactos/dll/win32/kernel32/file/file.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/file/file.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -479,7 +479,7 @@ *lpDistanceToMoveHigh = FilePosition.CurrentByteOffset.u.HighPart; } - if (FilePosition.CurrentByteOffset.u.LowPart == -1) + if (FilePosition.CurrentByteOffset.u.LowPart == -1U) { /* The value of -1 is valid here, especially when the new file position is greater than 4 GB. Since NtSetInformationFile Modified: trunk/reactos/dll/win32/kernel32/file/mailslot.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/ma…
============================================================================== --- trunk/reactos/dll/win32/kernel32/file/mailslot.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/file/mailslot.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -165,7 +165,7 @@ if (lpReadTimeout != NULL) { if (Buffer.ReadTimeout.LowPart == 0 && - Buffer.ReadTimeout.HighPart == 0x80000000) + Buffer.ReadTimeout.HighPart == (LONG)0x80000000) *lpReadTimeout = MAILSLOT_WAIT_FOREVER; else *lpReadTimeout = (DWORD)(Buffer.ReadTimeout.QuadPart / -10000); Modified: trunk/reactos/dll/win32/kernel32/file/npipe.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/np…
============================================================================== --- trunk/reactos/dll/win32/kernel32/file/npipe.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/file/npipe.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -952,7 +952,7 @@ LPSTR lpUserName, DWORD nMaxUserNameSize) { - UNICODE_STRING UserNameW = {0}; + UNICODE_STRING UserNameW = { 0, 0, NULL }; ANSI_STRING UserNameA; BOOL Ret; Modified: trunk/reactos/dll/win32/kernel32/file/volume.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/vo…
============================================================================== --- trunk/reactos/dll/win32/kernel32/file/volume.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/file/volume.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -495,7 +495,7 @@ ) { UNICODE_STRING FileSystemNameU; - UNICODE_STRING VolumeNameU = {0}; + UNICODE_STRING VolumeNameU = { 0, 0, NULL }; ANSI_STRING VolumeName; ANSI_STRING FileSystemName; PWCHAR RootPathNameW; Modified: trunk/reactos/dll/win32/kernel32/misc/muldiv.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/mu…
============================================================================== --- trunk/reactos/dll/win32/kernel32/misc/muldiv.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/misc/muldiv.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -53,7 +53,7 @@ /* Do the sign changes */ if ((LONG)Result.LowPart >= 0) { - return (Negative >= 0) ? Result.LowPart : -(LONG)Result.LowPart; + return (Negative >= 0) ? (LONG)Result.LowPart : -(LONG)Result.LowPart; } } Modified: trunk/reactos/dll/win32/kernel32/misc/profile.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/pr…
============================================================================== --- trunk/reactos/dll/win32/kernel32/misc/profile.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/misc/profile.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -76,7 +76,7 @@ { 0, 0, &PROFILE_CritSect, { &critsect_debug.ProcessLocksList, &critsect_debug.ProcessLocksList }, - 0, 0, 0, 0 + 0, 0, 0, 0, 0 }; static RTL_CRITICAL_SECTION PROFILE_CritSect = { &critsect_debug, -1, 0, 0, 0, 0 }; Modified: trunk/reactos/dll/win32/kernel32/misc/time.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/ti…
============================================================================== --- trunk/reactos/dll/win32/kernel32/misc/time.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/misc/time.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -250,7 +250,7 @@ { PDOSTIME pdtime=(PDOSTIME) lpFatTime; PDOSDATE pddate=(PDOSDATE) lpFatDate; - SYSTEMTIME SystemTime = { 0 }; + SYSTEMTIME SystemTime = { 0, 0, 0, 0, 0, 0, 0, 0 }; if ( lpFileTime == NULL ) return FALSE; Modified: trunk/reactos/dll/win32/kernel32/process/procsup.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/process…
============================================================================== --- trunk/reactos/dll/win32/kernel32/process/procsup.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/process/procsup.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -639,7 +639,7 @@ BOOLEAN FoundQuotes = FALSE; BOOLEAN QuotesNeeded = FALSE; BOOLEAN CmdLineIsAppName = FALSE; - UNICODE_STRING ApplicationName = {0}; + UNICODE_STRING ApplicationName = { 0, 0, NULL }; OBJECT_ATTRIBUTES LocalObjectAttributes; POBJECT_ATTRIBUTES ObjectAttributes; HANDLE hSection = NULL, hProcess = NULL, hThread = NULL, hDebug = NULL; Modified: trunk/reactos/dll/win32/kernel32/thread/tls.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/thread/…
============================================================================== --- trunk/reactos/dll/win32/kernel32/thread/tls.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/thread/tls.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -31,11 +31,11 @@ /* Try to get regular TEB slot. */ Index = RtlFindClearBitsAndSet(NtCurrentPeb()->TlsBitmap, 1, 0); - if (Index == ~0) + if (Index == ~0U) { /* If it fails, try to find expansion TEB slot. */ Index = RtlFindClearBitsAndSet(NtCurrentPeb()->TlsExpansionBitmap, 1, 0); - if (Index != ~0) + if (Index != ~0U) { if (NtCurrentTeb()->TlsExpansionSlots == NULL) { Modified: trunk/reactos/dll/win32/netcfgx/netcfg_iface.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netcfgx/netcfg_i…
============================================================================== --- trunk/reactos/dll/win32/netcfgx/netcfg_iface.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netcfgx/netcfg_iface.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -14,7 +14,7 @@ NetCfgComponentItem * pProtocol; } INetCfgImpl, *LPINetCfgImpl; -static LPINetCfgImpl __inline impl_from_INetCfgLock(INetCfgLock *iface) +static __inline LPINetCfgImpl impl_from_INetCfgLock(INetCfgLock *iface) { return (INetCfgImpl*)((char *)iface - FIELD_OFFSET(INetCfgImpl, lpVtblLock)); } Modified: trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netcfgx/tcpipcon…
============================================================================== --- trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netcfgx/tcpipconf_notify.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -107,7 +107,7 @@ UINT MaxNum; }TcpipPortSettings; -static LPTcpipConfNotifyImpl __inline impl_from_INetCfgComponentControl(INetCfgComponentControl *iface) +static __inline LPTcpipConfNotifyImpl impl_from_INetCfgComponentControl(INetCfgComponentControl *iface) { return (TcpipConfNotifyImpl*)((char *)iface - FIELD_OFFSET(TcpipConfNotifyImpl, lpVtblCompControl)); } Modified: trunk/reactos/dll/win32/netshell/connectmanager.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/connect…
============================================================================== --- trunk/reactos/dll/win32/netshell/connectmanager.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/connectmanager.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -26,7 +26,7 @@ } INetConnectionImpl, *LPINetConnectionImpl; -static LPINetConnectionManagerImpl __inline impl_from_EnumNetConnection(IEnumNetConnection *iface) +static __inline LPINetConnectionManagerImpl impl_from_EnumNetConnection(IEnumNetConnection *iface) { return (LPINetConnectionManagerImpl)((char *)iface - FIELD_OFFSET(INetConnectionManagerImpl, lpVtblNetConnection)); } Modified: trunk/reactos/dll/win32/netshell/lanconnectui.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lanconn…
============================================================================== --- trunk/reactos/dll/win32/netshell/lanconnectui.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/lanconnectui.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -32,12 +32,12 @@ LONG ref; }INetConnectionPropertyUiImpl, *LPINetConnectionPropertyUiImpl; -static LPINetConnectionPropertyUiImpl __inline impl_from_NetLanConnectionUiInfo(INetLanConnectionUiInfo *iface) +static __inline LPINetConnectionPropertyUiImpl impl_from_NetLanConnectionUiInfo(INetLanConnectionUiInfo *iface) { return (LPINetConnectionPropertyUiImpl)((char *)iface - FIELD_OFFSET(INetConnectionPropertyUiImpl, lpLanConUiInfoVtbl)); } -static LPINetConnectionPropertyUiImpl __inline impl_from_NetConnectionConnectUi(INetConnectionConnectUi *iface) +static __inline LPINetConnectionPropertyUiImpl impl_from_NetConnectionConnectUi(INetConnectionConnectUi *iface) { return (LPINetConnectionPropertyUiImpl)((char *)iface - FIELD_OFFSET(INetConnectionPropertyUiImpl, lpNetConnectionConnectUi)); } Modified: trunk/reactos/dll/win32/netshell/shfldr_netconnect.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/shfldr_…
============================================================================== --- trunk/reactos/dll/win32/netshell/shfldr_netconnect.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/shfldr_netconnect.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -79,28 +79,28 @@ static const IQueryInfoVtbl vt_QueryInfo; static const IExtractIconWVtbl vt_ExtractIconW; -static LPIContextMenuImpl __inline impl_from_IExtractIcon(IExtractIconW *iface) +static __inline LPIContextMenuImpl impl_from_IExtractIcon(IExtractIconW *iface) { return (LPIContextMenuImpl)((char *)iface - FIELD_OFFSET(IContextMenuImpl, lpVtblExtractIconW)); } -static LPIContextMenuImpl __inline impl_from_IObjectWithSite(IObjectWithSite *iface) +static __inline LPIContextMenuImpl impl_from_IObjectWithSite(IObjectWithSite *iface) { return (LPIContextMenuImpl)((char *)iface - FIELD_OFFSET(IContextMenuImpl, lpVtblObjectWithSite)); } -static LPIGenericSFImpl __inline impl_from_IPersistFolder2(IPersistFolder2 *iface) +static __inline LPIGenericSFImpl impl_from_IPersistFolder2(IPersistFolder2 *iface) { return (LPIGenericSFImpl)((char *)iface - FIELD_OFFSET(IGenericSFImpl, lpVtblPersistFolder2)); } -static LPIGenericSFImpl __inline impl_from_IShellExecuteHookW(IShellExecuteHookW *iface) +static __inline LPIGenericSFImpl impl_from_IShellExecuteHookW(IShellExecuteHookW *iface) { return (LPIGenericSFImpl)((char *)iface - FIELD_OFFSET(IGenericSFImpl, lpVtblShellExecuteHookW)); } -static LPIContextMenuImpl __inline impl_from_IQueryInfo(IQueryInfo *iface) +static __inline LPIContextMenuImpl impl_from_IQueryInfo(IQueryInfo *iface) { return (LPIContextMenuImpl)((char *)iface - FIELD_OFFSET(IContextMenuImpl, lpVtblQueryInfo)); } Modified: trunk/reactos/dll/win32/opengl32/opengl32.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/opengl32/opengl3…
============================================================================== --- trunk/reactos/dll/win32/opengl32/opengl32.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/opengl32/opengl32.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -21,7 +21,7 @@ /* global vars */ /* Do not assume it have the free value -1 set, any value can be in here */ -DWORD OPENGL32_tls = -1; +DWORD OPENGL32_tls = -1U; GLPROCESSDATA OPENGL32_processdata; @@ -103,7 +103,7 @@ TRUE /* bInheritHandle */ }; OPENGL32_tls = TlsAlloc(); - if (-1 == OPENGL32_tls) + if (-1U == OPENGL32_tls) return FALSE; memset( &OPENGL32_processdata, 0, sizeof (OPENGL32_processdata) ); @@ -179,7 +179,7 @@ CloseHandle( OPENGL32_processdata.dcdata_mutex ); /* free TLS */ - if (OPENGL32_tls != -1) + if (OPENGL32_tls != -1U) TlsFree(OPENGL32_tls); } Modified: trunk/reactos/dll/win32/userenv/directory.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/userenv/director…
============================================================================== --- trunk/reactos/dll/win32/userenv/directory.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/userenv/directory.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -169,7 +169,7 @@ FindClose (hFind); - DPRINT ("Copy Directory() done\n"); + DPRINT ("CopyDirectory() done\n"); return TRUE; } Modified: trunk/reactos/dll/win32/userenv/profile.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/userenv/profile.…
============================================================================== --- trunk/reactos/dll/win32/userenv/profile.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/userenv/profile.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -912,7 +912,7 @@ DWORD UserNameLength = 0, DomainLength = 0; PTOKEN_USER UserSid = NULL; SID_NAME_USE AccountType; - UNICODE_STRING SidString = { 0, }; + UNICODE_STRING SidString = { 0, 0, NULL }; LONG Error; BOOL ret = FALSE; DWORD dwLength = sizeof(szUserHivePath) / sizeof(szUserHivePath[0]); Modified: trunk/reactos/dll/win32/userenv/setup.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/userenv/setup.c?…
============================================================================== --- trunk/reactos/dll/win32/userenv/setup.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/userenv/setup.c [iso-8859-1] Wed Dec 3 11:33:13 2008 @@ -114,6 +114,8 @@ HKEY hKey; LONG Error; + DPRINT("InitializeProfiles()\n"); + /* Load profiles directory path */ if (!LoadStringW(hInstance, IDS_PROFILEPATH,
16 years
1
0
0
0
[dgorbachev] 37828: Silence compiler warnings (6/11).
by dgorbachev@svn.reactos.org
Author: dgorbachev Date: Wed Dec 3 11:32:36 2008 New Revision: 37828 URL:
http://svn.reactos.org/svn/reactos?rev=37828&view=rev
Log: Silence compiler warnings (6/11). Modified: trunk/reactos/lib/3rdparty/mingw/gccmain.c trunk/reactos/lib/cmlib/hivecell.c trunk/reactos/lib/cmlib/hivedata.h trunk/reactos/lib/cmlib/hivewrt.c trunk/reactos/lib/drivers/ip/network/ip.c trunk/reactos/lib/rtl/debug.c trunk/reactos/lib/sdk/crt/wine/heap.c trunk/reactos/lib/smlib/lookupss.c Modified: trunk/reactos/lib/3rdparty/mingw/gccmain.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/mingw/gccmain…
============================================================================== --- trunk/reactos/lib/3rdparty/mingw/gccmain.c [iso-8859-1] (original) +++ trunk/reactos/lib/3rdparty/mingw/gccmain.c [iso-8859-1] Wed Dec 3 11:32:36 2008 @@ -46,7 +46,7 @@ * is terminated with a null entry. Otherwise the first entry was * the number of pointers in the list. */ - if (nptrs == -1) + if (nptrs == (unsigned long) -1) { for (nptrs = 0; __CTOR_LIST__[nptrs + 1] != 0; nptrs++); } Modified: trunk/reactos/lib/cmlib/hivecell.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/hivecell.c?rev=3…
============================================================================== --- trunk/reactos/lib/cmlib/hivecell.c [iso-8859-1] (original) +++ trunk/reactos/lib/cmlib/hivecell.c [iso-8859-1] Wed Dec 3 11:32:36 2008 @@ -9,7 +9,7 @@ #define NDEBUG #include <debug.h> -static PHCELL __inline CMAPI +static __inline PHCELL CMAPI HvpGetCellHeader( PHHIVE RegistryHive, HCELL_INDEX CellIndex) @@ -74,7 +74,7 @@ return (PVOID)(HvpGetCellHeader(RegistryHive, CellIndex) + 1); } -static LONG __inline CMAPI +static __inline LONG CMAPI HvpGetCellFullSize( PHHIVE RegistryHive, PVOID Cell) @@ -141,7 +141,7 @@ return IsDirty; } -static ULONG __inline CMAPI +static __inline ULONG CMAPI HvpComputeFreeListIndex( ULONG Size) { @@ -424,7 +424,7 @@ * FIXME: Merge with adjacent free cell if possible. * FIXME: Implement shrinking. */ - if (Size > OldCellSize) + if (Size > (ULONG)OldCellSize) { NewCellIndex = HvAllocateCell(RegistryHive, Size, Storage, HCELL_NIL); if (NewCellIndex == HCELL_NIL) Modified: trunk/reactos/lib/cmlib/hivedata.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/hivedata.h?rev=3…
============================================================================== --- trunk/reactos/lib/cmlib/hivedata.h [iso-8859-1] (original) +++ trunk/reactos/lib/cmlib/hivedata.h [iso-8859-1] Wed Dec 3 11:32:36 2008 @@ -80,7 +80,7 @@ // // Cell Magic Values // -#define HCELL_NIL -1 +#define HCELL_NIL -1U #define HCELL_CACHED 1 #define HCELL_TYPE_MASK 0x80000000 Modified: trunk/reactos/lib/cmlib/hivewrt.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/hivewrt.c?rev=37…
============================================================================== --- trunk/reactos/lib/cmlib/hivewrt.c [iso-8859-1] (original) +++ trunk/reactos/lib/cmlib/hivewrt.c [iso-8859-1] Wed Dec 3 11:32:36 2008 @@ -79,7 +79,7 @@ { LastIndex = BlockIndex; BlockIndex = RtlFindSetBits(&RegistryHive->DirtyVector, 1, BlockIndex); - if (BlockIndex == ~0 || BlockIndex < LastIndex) + if (BlockIndex == ~0U || BlockIndex < LastIndex) { break; } @@ -182,7 +182,7 @@ { LastIndex = BlockIndex; BlockIndex = RtlFindSetBits(&RegistryHive->DirtyVector, 1, BlockIndex); - if (BlockIndex == ~0 || BlockIndex < LastIndex) + if (BlockIndex == ~0U || BlockIndex < LastIndex) { break; } @@ -239,7 +239,7 @@ { ASSERT(RegistryHive->ReadOnly == FALSE); - if (RtlFindSetBits(&RegistryHive->DirtyVector, 1, 0) == ~0) + if (RtlFindSetBits(&RegistryHive->DirtyVector, 1, 0) == ~0U) { return TRUE; } Modified: trunk/reactos/lib/drivers/ip/network/ip.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/ip/network/ip.…
============================================================================== --- trunk/reactos/lib/drivers/ip/network/ip.c [iso-8859-1] (original) +++ trunk/reactos/lib/drivers/ip/network/ip.c [iso-8859-1] Wed Dec 3 11:32:36 2008 @@ -150,8 +150,7 @@ Protocol = 0; } - if (Protocol < IP_PROTOCOL_TABLE_SIZE && - Protocol >= 0) + if (Protocol < IP_PROTOCOL_TABLE_SIZE) { /* Call the appropriate protocol handler */ (*ProtocolTable[Protocol])(Interface, IPPacket); Modified: trunk/reactos/lib/rtl/debug.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/debug.c?rev=37828&…
============================================================================== --- trunk/reactos/lib/rtl/debug.c [iso-8859-1] (original) +++ trunk/reactos/lib/rtl/debug.c [iso-8859-1] Wed Dec 3 11:32:36 2008 @@ -61,7 +61,8 @@ EXCEPTION_RECORD ExceptionRecord; /* Check if we should print it or not */ - if ((ComponentId != -1) && !(NtQueryDebugFilterState(ComponentId, Level))) + if ((ComponentId != -1U) && + !(NtQueryDebugFilterState(ComponentId, Level))) { /* This message is masked */ return Status; @@ -96,7 +97,7 @@ if (!NT_SUCCESS(Status)) return Status; /* Check if we went past the buffer */ - if (Length == -1) + if (Length == -1U) { /* Terminate it if we went over-board */ Buffer[sizeof(Buffer) - 1] = '\n'; Modified: trunk/reactos/lib/sdk/crt/wine/heap.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/wine/heap.c?re…
============================================================================== --- trunk/reactos/lib/sdk/crt/wine/heap.c [iso-8859-1] (original) +++ trunk/reactos/lib/sdk/crt/wine/heap.c [iso-8859-1] Wed Dec 3 11:32:36 2008 @@ -255,7 +255,7 @@ /* Get previous size of block */ old_size = _msize(*saved); - if (old_size == -1) + if (old_size == (size_t)-1) { /* It seems this function was called with an invalid pointer. Bail out. */ return NULL; Modified: trunk/reactos/lib/smlib/lookupss.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/smlib/lookupss.c?rev=3…
============================================================================== --- trunk/reactos/lib/smlib/lookupss.c [iso-8859-1] (original) +++ trunk/reactos/lib/smlib/lookupss.c [iso-8859-1] Wed Dec 3 11:32:36 2008 @@ -36,7 +36,7 @@ IN PVOID Environment OPTIONAL) { NTSTATUS Status = STATUS_SUCCESS; - UNICODE_STRING usKeyName = {0}; + UNICODE_STRING usKeyName = { 0, 0, NULL }; OBJECT_ATTRIBUTES Oa = {0}; HANDLE hKey = (HANDLE) 0; @@ -62,7 +62,7 @@ & Oa); if(NT_SUCCESS(Status)) { - UNICODE_STRING usValueName = {0}; + UNICODE_STRING usValueName = { 0, 0, NULL }; PWCHAR KeyValueInformation = NULL; ULONG KeyValueInformationLength = 1024; ULONG ResultLength = 0L;
16 years
1
0
0
0
[dgorbachev] 37827: Silence compiler warnings (5/11).
by dgorbachev@svn.reactos.org
Author: dgorbachev Date: Wed Dec 3 11:31:38 2008 New Revision: 37827 URL:
http://svn.reactos.org/svn/reactos?rev=37827&view=rev
Log: Silence compiler warnings (5/11). Modified: trunk/reactos/hal/halx86/generic/cmos.c trunk/reactos/hal/halx86/generic/dma.c trunk/reactos/hal/halx86/generic/pci.c trunk/reactos/hal/halx86/generic/reboot.c Modified: trunk/reactos/hal/halx86/generic/cmos.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/cmos.c?…
============================================================================== --- trunk/reactos/hal/halx86/generic/cmos.c [iso-8859-1] (original) +++ trunk/reactos/hal/halx86/generic/cmos.c [iso-8859-1] Wed Dec 3 11:31:38 2008 @@ -19,8 +19,8 @@ /* PRIVATE FUNCTIONS *********************************************************/ +FORCEINLINE UCHAR -FORCEINLINE HalpReadCmos(IN UCHAR Reg) { /* Select the register */ @@ -30,8 +30,8 @@ return READ_PORT_UCHAR(CMOS_DATA_PORT); } +FORCEINLINE VOID -FORCEINLINE HalpWriteCmos(IN UCHAR Reg, IN UCHAR Value) { Modified: trunk/reactos/hal/halx86/generic/dma.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/dma.c?r…
============================================================================== --- trunk/reactos/hal/halx86/generic/dma.c [iso-8859-1] (original) +++ trunk/reactos/hal/halx86/generic/dma.c [iso-8859-1] Wed Dec 3 11:31:38 2008 @@ -1073,7 +1073,7 @@ { PADAPTER_OBJECT MasterAdapter; PGROW_WORK_ITEM WorkItem; - ULONG Index = ~0; + ULONG Index = ~0U; ULONG Result; KIRQL OldIrql; @@ -1129,7 +1129,7 @@ { Index = RtlFindClearBitsAndSet( MasterAdapter->MapRegisters, NumberOfMapRegisters, 0); - if (Index != ~0) + if (Index != ~0U) { AdapterObject->MapRegisterBase = MasterAdapter->MapRegisterBase + Index; @@ -1143,7 +1143,7 @@ } } - if (Index == ~0) + if (Index == ~0U) { WorkItem = ExAllocatePoolWithTag( NonPagedPool, sizeof(GROW_WORK_ITEM), TAG_DMA); @@ -1287,7 +1287,7 @@ Index = RtlFindClearBitsAndSet( MasterAdapter->MapRegisters, WaitContextBlock->NumberOfMapRegisters, 0); - if (Index != ~0) + if (Index != ~0U) { AdapterObject->MapRegisterBase = MasterAdapter->MapRegisterBase + Index; @@ -1301,7 +1301,7 @@ } } - if (Index == ~0) + if (Index == ~0U) { InsertTailList(&MasterAdapter->AdapterQueue, &AdapterObject->AdapterQueue); KfReleaseSpinLock(&MasterAdapter->SpinLock, OldIrql); @@ -1404,7 +1404,7 @@ MasterAdapter->MapRegisters, AdapterObject->NumberOfMapRegisters, MasterAdapter->NumberOfMapRegisters); - if (Index == ~0) + if (Index == ~0U) { InsertHeadList(&MasterAdapter->AdapterQueue, ListEntry); break; @@ -1602,7 +1602,7 @@ { if ((ULONG_PTR)MapRegisterBase & MAP_BASE_SW_SG) { - if (RealMapRegisterBase->Counter != ~0) + if (RealMapRegisterBase->Counter != ~0U) { if (SlaveDma && !AdapterObject->IgnoreCount) Length -= HalReadDmaCounter(AdapterObject); @@ -1984,13 +1984,12 @@ } /* Try to find free map registers */ - MapRegisterNumber = -1; MapRegisterNumber = RtlFindClearBitsAndSet(MasterAdapter->MapRegisters, *NumberOfMapRegisters, 0); /* Check if nothing was found */ - if (MapRegisterNumber == -1) + if (MapRegisterNumber == -1U) { /* No free registers found, so use the base registers */ RtlSetBits(MasterAdapter->MapRegisters, Modified: trunk/reactos/hal/halx86/generic/pci.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/pci.c?r…
============================================================================== --- trunk/reactos/hal/halx86/generic/pci.c [iso-8859-1] (original) +++ trunk/reactos/hal/halx86/generic/pci.c [iso-8859-1] Wed Dec 3 11:31:38 2008 @@ -81,10 +81,10 @@ HalpWritePCIConfig, NULL, NULL, - {{{0}}}, + {{{0, 0, 0}}}, {0, 0, 0, 0} }, - {{0}}, + {{0, 0}}, 32, }; Modified: trunk/reactos/hal/halx86/generic/reboot.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/reboot.…
============================================================================== --- trunk/reactos/hal/halx86/generic/reboot.c [iso-8859-1] (original) +++ trunk/reactos/hal/halx86/generic/reboot.c [iso-8859-1] Wed Dec 3 11:31:38 2008 @@ -29,7 +29,7 @@ { UCHAR Data; PVOID HalpZeroPageMapping; - PHYSICAL_ADDRESS Null = {{0}}; + PHYSICAL_ADDRESS Null = {{0, 0}}; /* Enable warm reboot */ HalpZeroPageMapping = MmMapIoSpace(Null, PAGE_SIZE, MmNonCached);
16 years
1
0
0
0
[dgorbachev] 37826: Silence compiler warnings (4/11).
by dgorbachev@svn.reactos.org
Author: dgorbachev Date: Wed Dec 3 11:29:38 2008 New Revision: 37826 URL:
http://svn.reactos.org/svn/reactos?rev=37826&view=rev
Log: Silence compiler warnings (4/11). Modified: trunk/reactos/drivers/base/bootvid/i386/bootvid.c trunk/reactos/drivers/filesystems/fs_rec/ext2.c trunk/reactos/drivers/filesystems/fs_rec/fat.c trunk/reactos/drivers/filesystems/fs_rec/ntfs.c trunk/reactos/drivers/input/kbdclass/kbdclass.c trunk/reactos/drivers/input/mouclass/mouclass.c trunk/reactos/drivers/network/tcpip/datalink/lan.c trunk/reactos/drivers/serial/serial/misc.c trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c trunk/reactos/drivers/storage/port/diskdump/diskdump.c trunk/reactos/drivers/video/displays/vga/main/enable.c trunk/reactos/drivers/video/videoprt/agp.c trunk/reactos/drivers/video/videoprt/ddc.c Modified: trunk/reactos/drivers/base/bootvid/i386/bootvid.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/base/bootvid/i386/…
============================================================================== --- trunk/reactos/drivers/base/bootvid/i386/bootvid.c [iso-8859-1] (original) +++ trunk/reactos/drivers/base/bootvid/i386/bootvid.c [iso-8859-1] Wed Dec 3 11:29:38 2008 @@ -357,7 +357,7 @@ { ULONG Context = 0; PHYSICAL_ADDRESS TranslatedAddress; - PHYSICAL_ADDRESS NullAddress = {{0}}; + PHYSICAL_ADDRESS NullAddress = {{0, 0}}; ULONG AddressSpace = 1; BOOLEAN Result; ULONG_PTR Base; Modified: trunk/reactos/drivers/filesystems/fs_rec/ext2.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec…
============================================================================== --- trunk/reactos/drivers/filesystems/fs_rec/ext2.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/fs_rec/ext2.c [iso-8859-1] Wed Dec 3 11:29:38 2008 @@ -32,7 +32,7 @@ PDEVICE_OBJECT MountDevice; PVOID Bpb = NULL; ULONG SectorSize; - LARGE_INTEGER Offset = {{0}}; + LARGE_INTEGER Offset = {{0, 0}}; BOOLEAN DeviceError = FALSE; PAGED_CODE(); Modified: trunk/reactos/drivers/filesystems/fs_rec/fat.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec…
============================================================================== --- trunk/reactos/drivers/filesystems/fs_rec/fat.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/fs_rec/fat.c [iso-8859-1] Wed Dec 3 11:29:38 2008 @@ -104,7 +104,7 @@ PDEVICE_OBJECT MountDevice; PPACKED_BOOT_SECTOR Bpb = NULL; ULONG SectorSize; - LARGE_INTEGER Offset = {{0}}; + LARGE_INTEGER Offset = {{0, 0}}; BOOLEAN DeviceError = FALSE; PAGED_CODE(); Modified: trunk/reactos/drivers/filesystems/fs_rec/ntfs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec…
============================================================================== --- trunk/reactos/drivers/filesystems/fs_rec/ntfs.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/fs_rec/ntfs.c [iso-8859-1] Wed Dec 3 11:29:38 2008 @@ -53,7 +53,7 @@ PDEVICE_OBJECT MountDevice; PPACKED_BOOT_SECTOR Bpb = NULL; ULONG SectorSize; - LARGE_INTEGER Offset = {{0}}, Offset2, Offset3, SectorCount; + LARGE_INTEGER Offset = {{0, 0}}, Offset2, Offset3, SectorCount; PAGED_CODE(); /* Get the I/O Stack and check the function type */ Modified: trunk/reactos/drivers/input/kbdclass/kbdclass.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/kbdclass/kbd…
============================================================================== --- trunk/reactos/drivers/input/kbdclass/kbdclass.c [iso-8859-1] (original) +++ trunk/reactos/drivers/input/kbdclass/kbdclass.c [iso-8859-1] Wed Dec 3 11:29:38 2008 @@ -845,7 +845,7 @@ { UNICODE_STRING DeviceMapKeyU = RTL_CONSTANT_STRING(L"\\REGISTRY\\MACHINE\\HARDWARE\\DEVICEMAP"); PCLASS_DRIVER_EXTENSION DriverExtension; - UNICODE_STRING PortBaseName = {0, }; + UNICODE_STRING PortBaseName = { 0, 0, NULL }; PKEY_VALUE_BASIC_INFORMATION KeyValueInformation = NULL; OBJECT_ATTRIBUTES ObjectAttributes; HANDLE hDeviceMapKey = (HANDLE)-1; Modified: trunk/reactos/drivers/input/mouclass/mouclass.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/mouclass/mou…
============================================================================== --- trunk/reactos/drivers/input/mouclass/mouclass.c [iso-8859-1] (original) +++ trunk/reactos/drivers/input/mouclass/mouclass.c [iso-8859-1] Wed Dec 3 11:29:38 2008 @@ -821,7 +821,7 @@ { UNICODE_STRING DeviceMapKeyU = RTL_CONSTANT_STRING(L"\\REGISTRY\\MACHINE\\HARDWARE\\DEVICEMAP"); PCLASS_DRIVER_EXTENSION DriverExtension; - UNICODE_STRING PortBaseName = {0, }; + UNICODE_STRING PortBaseName = { 0, 0, NULL }; PKEY_VALUE_BASIC_INFORMATION KeyValueInformation = NULL; OBJECT_ATTRIBUTES ObjectAttributes; HANDLE hDeviceMapKey = (HANDLE)-1; Modified: trunk/reactos/drivers/network/tcpip/datalink/lan.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/tcpip/data…
============================================================================== --- trunk/reactos/drivers/network/tcpip/datalink/lan.c [iso-8859-1] (original) +++ trunk/reactos/drivers/network/tcpip/datalink/lan.c [iso-8859-1] Wed Dec 3 11:29:38 2008 @@ -808,9 +808,9 @@ PUNICODE_STRING TargetKeyName, PUNICODE_STRING Name, PUNICODE_STRING DeviceDesc ) { - UNICODE_STRING RootDevice = { 0 }, LinkageKeyName = { 0 }; - UNICODE_STRING DescKeyName = { 0 }, Linkage = { 0 }; - UNICODE_STRING BackSlash = { 0 }; + UNICODE_STRING RootDevice = { 0, 0, NULL }, LinkageKeyName = { 0, 0, NULL }; + UNICODE_STRING DescKeyName = { 0, 0, NULL }, Linkage = { 0, 0, NULL }; + UNICODE_STRING BackSlash = { 0, 0, NULL }; HANDLE DescKey = NULL, LinkageKey = NULL; NTSTATUS Status; @@ -962,7 +962,7 @@ PIP_INTERFACE IF; NDIS_STATUS NdisStatus; LLIP_BIND_INFO BindInfo; - IP_ADDRESS DefaultMask = { 0 }; + IP_ADDRESS DefaultMask; ULONG Lookahead = LOOKAHEAD_SIZE; NTSTATUS Status; @@ -1012,7 +1012,7 @@ TI_DbgPrint(DEBUG_DATALINK,("Adapter Description: %wZ\n", &IF->Description)); - DefaultMask.Type = IP_ADDRESS_V4; + AddrInitIPv4(&DefaultMask, 0); IF->Unicast = DefaultMask; IF->Netmask = DefaultMask; Modified: trunk/reactos/drivers/serial/serial/misc.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/serial/serial/misc…
============================================================================== --- trunk/reactos/drivers/serial/serial/misc.c [iso-8859-1] (original) +++ trunk/reactos/drivers/serial/serial/misc.c [iso-8859-1] Wed Dec 3 11:29:38 2008 @@ -186,7 +186,9 @@ if (MSR & SR_MSR_CTS) KeInsertQueueDpc(&DeviceExtension->SendByteDpc, NULL, NULL); else + { ; /* FIXME: stop transmission */ + } Events |= SERIAL_EV_CTS; } if (MSR & SR_MSR_DSR_CHANGED) @@ -194,7 +196,9 @@ if (MSR & SR_MSR_DSR) KeInsertQueueDpc(&DeviceExtension->ReceivedByteDpc, NULL, NULL); else + { ; /* FIXME: stop reception */ + } Events |= SERIAL_EV_DSR; } if (MSR & SR_MSR_RI_CHANGED) Modified: trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/class/ramd…
============================================================================== --- trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] (original) +++ trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] Wed Dec 3 11:29:38 2008 @@ -1199,7 +1199,7 @@ NTSTATUS Status; PPARTITION_INFORMATION PartitionInfo; PVOID BaseAddress; - LARGE_INTEGER Zero = {{0}}; + LARGE_INTEGER Zero = {{0, 0}}; ULONG Length; PIO_STACK_LOCATION IoStackLocation; Modified: trunk/reactos/drivers/storage/port/diskdump/diskdump.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/port/diskd…
============================================================================== --- trunk/reactos/drivers/storage/port/diskdump/diskdump.c [iso-8859-1] (original) +++ trunk/reactos/drivers/storage/port/diskdump/diskdump.c [iso-8859-1] Wed Dec 3 11:29:38 2008 @@ -101,16 +101,16 @@ {"ScsiPortConvertUlongToPhysicalAddress", 3, NULL, NULL}, {"ScsiPortFreeDeviceBase", 5, NULL, DiskDumpScsiInvalid}, {"ScsiPortGetBusData", 6, NULL, DiskDumpScsiInvalid}, - {"ScsiPortGetDeviceBase", 7, DiskDumpScsiInvalid}, + {"ScsiPortGetDeviceBase", 7, NULL, DiskDumpScsiInvalid}, {"ScsiPortInitialize", 13, NULL, DiskDumpScsiInvalid}, {"ScsiPortNotification", 17, NULL, _DiskDumpScsiPortNotification}, - {"ScsiPortReadPortBufferUlong", 19, NULL}, - {"ScsiPortReadPortBufferUshort", 20, NULL}, + {"ScsiPortReadPortBufferUlong", 19, NULL, NULL}, + {"ScsiPortReadPortBufferUshort", 20, NULL, NULL}, {"ScsiPortReadPortUchar", 21, NULL, NULL}, {"ScsiPortReadPortUshort", 23, NULL, NULL}, {"ScsiPortStallExecution", 31, NULL, NULL}, - {"ScsiPortWritePortBufferUlong", 34, NULL}, - {"ScsiPortWritePortBufferUshort", 35, NULL}, + {"ScsiPortWritePortBufferUlong", 34, NULL, NULL}, + {"ScsiPortWritePortBufferUshort", 35, NULL, NULL}, {"ScsiPortWritePortUchar", 36, NULL, NULL}, {"ScsiDebugPrint", 0, NULL, NULL}, }; Modified: trunk/reactos/drivers/video/displays/vga/main/enable.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/displays/vga…
============================================================================== --- trunk/reactos/drivers/video/displays/vga/main/enable.c [iso-8859-1] (original) +++ trunk/reactos/drivers/video/displays/vga/main/enable.c [iso-8859-1] Wed Dec 3 11:29:38 2008 @@ -56,7 +56,7 @@ }; static GDIINFO gaulCap = { - GDI_DRIVER_VERSION, + GDI_DRIVER_VERSION, // ulVersion DT_RASDISPLAY, // ulTechnology 0, // ulHorzSize 0, // ulVertSize @@ -73,7 +73,7 @@ TC_RA_ABLE | TC_SCROLLBLT, // flTextCaps 6, // ulDACRed - 6, // ulDACGree + 6, // ulDACGreen 6, // ulDACBlue 0x0024, // ulAspectX (one-to-one aspect ratio) @@ -115,7 +115,18 @@ 8, // ulBltAlignment 0, // ulPanningHorzRes 0, // ulPanningVertRes - }; + + 0, // xPanningAlignment + 0, // yPanningAlignment + 0, // cxHTPat + 0, // cyHTPat + NULL, // pHTPatA + NULL, // pHTPatB + NULL, // pHTPatC + 0, // flShadeBlend + 0, // ulPhysicalPixelCharacteristics + 0 // ulPhysicalPixelGamma +}; // Palette for VGA @@ -170,7 +181,8 @@ BMF_4BPP, // preferred DIB format 8, // Width of color dither 8, // Height of color dither - 0 // Default palette to use for this device + NULL, // Default palette to use for this device + 0 // flGraphicsCaps2 }; BOOL APIENTRY Modified: trunk/reactos/drivers/video/videoprt/agp.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/videoprt/agp…
============================================================================== --- trunk/reactos/drivers/video/videoprt/agp.c [iso-8859-1] (original) +++ trunk/reactos/drivers/video/videoprt/agp.c [iso-8859-1] Wed Dec 3 11:29:38 2008 @@ -99,7 +99,7 @@ { PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension; PAGP_BUS_INTERFACE_STANDARD AgpBusInterface; - PHYSICAL_ADDRESS MappingAddr = {{0}}; + PHYSICAL_ADDRESS MappingAddr = {{0, 0}}; PVIDEO_PORT_AGP_MAPPING AgpMapping; NTSTATUS Status; @@ -186,7 +186,7 @@ IN VIDEO_PORT_CACHE_TYPE Caching, OUT PVOID *PhysicalContext) { - PHYSICAL_ADDRESS ZeroAddress = {{0}}; + PHYSICAL_ADDRESS ZeroAddress = {{0, 0}}; PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension; PAGP_BUS_INTERFACE_STANDARD AgpBusInterface; MEMORY_CACHING_TYPE MemCachingType; Modified: trunk/reactos/drivers/video/videoprt/ddc.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/videoprt/ddc…
============================================================================== --- trunk/reactos/drivers/video/videoprt/ddc.c [iso-8859-1] (original) +++ trunk/reactos/drivers/video/videoprt/ddc.c [iso-8859-1] Wed Dec 3 11:29:38 2008 @@ -35,7 +35,7 @@ #define WRITE_SDA(state) (i2c->WriteDataLine(HwDeviceExtension, state)) #define WRITE_SCL(state) (i2c->WriteClockLine(HwDeviceExtension, state)) -STATIC LARGE_INTEGER HalfPeriodDelay = { { 70LL } }; +STATIC LARGE_INTEGER HalfPeriodDelay = {{0, 70}}; #define DELAY_HALF() KeDelayExecutionThread(KernelMode, FALSE, &HalfPeriodDelay)
16 years
1
0
0
0
[dgorbachev] 37825: Silence compiler warnings (3/11).
by dgorbachev@svn.reactos.org
Author: dgorbachev Date: Wed Dec 3 11:28:59 2008 New Revision: 37825 URL:
http://svn.reactos.org/svn/reactos?rev=37825&view=rev
Log: Silence compiler warnings (3/11). Modified: trunk/reactos/ntoskrnl/cc/view.c trunk/reactos/ntoskrnl/config/cmsysini.c trunk/reactos/ntoskrnl/ex/fmutex.c trunk/reactos/ntoskrnl/ex/init.c trunk/reactos/ntoskrnl/ex/resource.c trunk/reactos/ntoskrnl/fsrtl/fastio.c trunk/reactos/ntoskrnl/io/iomgr/deviface.c trunk/reactos/ntoskrnl/io/iomgr/driver.c trunk/reactos/ntoskrnl/io/iomgr/iorsrce.c trunk/reactos/ntoskrnl/io/iomgr/irp.c trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c trunk/reactos/ntoskrnl/kdbg/i386/i386-dis.c trunk/reactos/ntoskrnl/ke/clock.c trunk/reactos/ntoskrnl/ke/freeldr.c trunk/reactos/ntoskrnl/ke/gmutex.c trunk/reactos/ntoskrnl/ke/i386/cpu.c trunk/reactos/ntoskrnl/ke/i386/exp.c trunk/reactos/ntoskrnl/ke/i386/kiinit.c trunk/reactos/ntoskrnl/ke/krnlinit.c trunk/reactos/ntoskrnl/ke/wait.c trunk/reactos/ntoskrnl/mm/anonmem.c trunk/reactos/ntoskrnl/mm/mdlsup.c trunk/reactos/ntoskrnl/mm/ncache.c trunk/reactos/ntoskrnl/mm/pagefile.c trunk/reactos/ntoskrnl/mm/region.c trunk/reactos/ntoskrnl/mm/section.c trunk/reactos/ntoskrnl/mm/sysldr.c trunk/reactos/ntoskrnl/ob/oblink.c trunk/reactos/ntoskrnl/ob/obsdcach.c trunk/reactos/ntoskrnl/ps/kill.c trunk/reactos/ntoskrnl/ps/psmgr.c trunk/reactos/ntoskrnl/se/token.c Modified: trunk/reactos/ntoskrnl/cc/view.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cc/view.c?rev=378…
============================================================================== --- trunk/reactos/ntoskrnl/cc/view.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/cc/view.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -556,7 +556,8 @@ return(STATUS_SUCCESS); } -NTSTATUS static +static +NTSTATUS CcRosCreateCacheSegment(PBCB Bcb, ULONG FileOffset, PCACHE_SEGMENT* CacheSeg) Modified: trunk/reactos/ntoskrnl/config/cmsysini.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmsysini.c…
============================================================================== --- trunk/reactos/ntoskrnl/config/cmsysini.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/config/cmsysini.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -310,7 +310,7 @@ CmpSetSystemValues(IN PLOADER_PARAMETER_BLOCK LoaderBlock) { OBJECT_ATTRIBUTES ObjectAttributes; - UNICODE_STRING KeyName, ValueName = {0}; + UNICODE_STRING KeyName, ValueName = { 0, 0, NULL }; HANDLE KeyHandle; NTSTATUS Status; ASSERT(LoaderBlock != NULL); Modified: trunk/reactos/ntoskrnl/ex/fmutex.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/fmutex.c?rev=3…
============================================================================== --- trunk/reactos/ntoskrnl/ex/fmutex.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ex/fmutex.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -20,8 +20,8 @@ /* PRIVATE FUNCTIONS *********************************************************/ -VOID FORCEINLINE +VOID ExiAcquireFastMutexUnsafe(IN PFAST_MUTEX FastMutex) { PKTHREAD Thread = KeGetCurrentThread(); @@ -47,8 +47,8 @@ FastMutex->Owner = Thread; } -VOID FORCEINLINE +VOID ExiReleaseFastMutexUnsafe(IN OUT PFAST_MUTEX FastMutex) { ASSERT((KeGetCurrentIrql() == APC_LEVEL) || Modified: trunk/reactos/ntoskrnl/ex/init.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/init.c?rev=378…
============================================================================== --- trunk/reactos/ntoskrnl/ex/init.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ex/init.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -197,7 +197,7 @@ HANDLE NlsSection; PVOID SectionBase = NULL; ULONG ViewSize = 0; - LARGE_INTEGER SectionOffset = {{0}}; + LARGE_INTEGER SectionOffset = {{0, 0}}; PLIST_ENTRY ListHead, NextEntry; PMEMORY_ALLOCATION_DESCRIPTOR MdBlock; ULONG NlsTablesEncountered = 0; @@ -466,7 +466,7 @@ /* Make sure the buffer is a valid string which within the given length */ if ((NtInitialUserProcessBufferType != REG_SZ) || - ((NtInitialUserProcessBufferLength != -1) && + ((NtInitialUserProcessBufferLength != -1U) && ((NtInitialUserProcessBufferLength < sizeof(WCHAR)) || (NtInitialUserProcessBufferLength > sizeof(NtInitialUserProcessBuffer) - sizeof(WCHAR))))) @@ -1429,7 +1429,7 @@ if (!ExpRealTimeIsUniversal) { /* Check if we don't have a valid bias */ - if (ExpLastTimeZoneBias == -1) + if (ExpLastTimeZoneBias == -1U) { /* Reset */ ResetBias = TRUE; Modified: trunk/reactos/ntoskrnl/ex/resource.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/resource.c?rev…
============================================================================== --- trunk/reactos/ntoskrnl/ex/resource.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ex/resource.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -20,8 +20,8 @@ #if (!(defined(CONFIG_SMP)) && !(defined(DBG))) +FORCEINLINE VOID -FORCEINLINE ExAcquireResourceLock(IN PERESOURCE Resource, IN PKLOCK_QUEUE_HANDLE LockHandle) { @@ -32,8 +32,8 @@ _disable(); } +FORCEINLINE VOID -FORCEINLINE ExReleaseResourceLock(IN PERESOURCE Resource, IN PKLOCK_QUEUE_HANDLE LockHandle) { @@ -46,8 +46,8 @@ #else +FORCEINLINE VOID -FORCEINLINE ExAcquireResourceLock(IN PERESOURCE Resource, IN PKLOCK_QUEUE_HANDLE LockHandle) { @@ -55,8 +55,8 @@ KeAcquireInStackQueuedSpinLock(&Resource->SpinLock, LockHandle); } +FORCEINLINE VOID -FORCEINLINE ExReleaseResourceLock(IN PERESOURCE Resource, IN PKLOCK_QUEUE_HANDLE LockHandle) { Modified: trunk/reactos/ntoskrnl/fsrtl/fastio.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/fsrtl/fastio.c?re…
============================================================================== --- trunk/reactos/ntoskrnl/fsrtl/fastio.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/fsrtl/fastio.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -247,7 +247,7 @@ PFSRTL_COMMON_FCB_HEADER FcbHeader; /* WDK doc. Offset=0xffffffffffffffff indicates append to the end of file */ - BOOLEAN FileOffsetAppend = ((FileOffset->HighPart == 0xffffffff) && (FileOffset->LowPart == 0xffffffff)); + BOOLEAN FileOffsetAppend = ((FileOffset->HighPart == (LONG)0xffffffff) && (FileOffset->LowPart == 0xffffffff)); BOOLEAN ResourceAquiredShared = FALSE; BOOLEAN b_4GB = FALSE; @@ -1153,7 +1153,7 @@ LARGE_INTEGER Offset; /* WDK doc. Offset=0xffffffffffffffff indicates append to the end of file */ - BOOLEAN FileOffsetAppend = ((FileOffset->HighPart == 0xffffffff) && (FileOffset->LowPart == 0xffffffff)); + BOOLEAN FileOffsetAppend = ((FileOffset->HighPart == (LONG)0xffffffff) && (FileOffset->LowPart == 0xffffffff)); BOOLEAN FileSizeModified = FALSE; BOOLEAN ResourceAquiredShared = FALSE; Modified: trunk/reactos/ntoskrnl/io/iomgr/deviface.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/deviface…
============================================================================== --- trunk/reactos/ntoskrnl/io/iomgr/deviface.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/io/iomgr/deviface.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -247,7 +247,7 @@ OBJECT_ATTRIBUTES ObjectAttributes; BOOLEAN FoundRightPDO = FALSE; ULONG i = 0, j, Size; - UNICODE_STRING ReturnBuffer = {0,}; + UNICODE_STRING ReturnBuffer = { 0, 0, NULL }; NTSTATUS Status; PAGED_CODE(); Modified: trunk/reactos/ntoskrnl/io/iomgr/driver.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/driver.c…
============================================================================== --- trunk/reactos/ntoskrnl/io/iomgr/driver.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/io/iomgr/driver.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -569,7 +569,7 @@ PDEVICE_NODE DeviceNode, BOOLEAN Lower) { - RTL_QUERY_REGISTRY_TABLE QueryTable[2] = {{0}}; + RTL_QUERY_REGISTRY_TABLE QueryTable[2] = { { NULL, 0, NULL, NULL, 0, NULL, 0 }, }; UNICODE_STRING Class; WCHAR ClassBuffer[40]; UNICODE_STRING EnumRoot = RTL_CONSTANT_STRING(ENUM_ROOT); @@ -1749,7 +1749,7 @@ NTSTATUS NTAPI NtLoadDriver(IN PUNICODE_STRING DriverServiceName) { - UNICODE_STRING CapturedDriverServiceName = {0}; + UNICODE_STRING CapturedDriverServiceName = { 0, 0, NULL }; KPROCESSOR_MODE PreviousMode; LOAD_UNLOAD_PARAMS LoadParams; NTSTATUS Status; Modified: trunk/reactos/ntoskrnl/io/iomgr/iorsrce.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/iorsrce.…
============================================================================== --- trunk/reactos/ntoskrnl/io/iomgr/iorsrce.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/io/iomgr/iorsrce.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -16,7 +16,7 @@ /* GLOBALS *******************************************************************/ static CONFIGURATION_INFORMATION -_SystemConfigurationInformation = {0, 0, 0, 0, 0, 0, 0, FALSE, FALSE}; +_SystemConfigurationInformation = { 0, 0, 0, 0, 0, 0, 0, FALSE, FALSE, 0, 0 }; /* API Parameters to Pass in IopQueryBusDescription */ typedef struct IO_QUERY { Modified: trunk/reactos/ntoskrnl/io/iomgr/irp.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/irp.c?re…
============================================================================== --- trunk/reactos/ntoskrnl/io/iomgr/irp.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/io/iomgr/irp.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -253,7 +253,7 @@ FileObject); /* Sanity check */ - ASSERT(Irp->IoStatus.Status != 0xFFFFFFFF); + ASSERT(Irp->IoStatus.Status != (NTSTATUS)0xFFFFFFFF); /* Check if we have a file object */ if (*SystemArgument2) @@ -1183,7 +1183,7 @@ ASSERT(Irp->Type == IO_TYPE_IRP); ASSERT(!Irp->CancelRoutine); ASSERT(Irp->IoStatus.Status != STATUS_PENDING); - ASSERT(Irp->IoStatus.Status != 0xFFFFFFFF); + ASSERT(Irp->IoStatus.Status != (NTSTATUS)0xFFFFFFFF); /* Get the last stack */ LastStackPtr = (PIO_STACK_LOCATION)(Irp + 1); Modified: trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.…
============================================================================== --- trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -1267,7 +1267,7 @@ LCID LocaleId; HANDLE InstanceKey = NULL; UNICODE_STRING ValueName; - UNICODE_STRING ParentIdPrefix = { 0 }; + UNICODE_STRING ParentIdPrefix = { 0, 0, NULL }; DEVICE_CAPABILITIES DeviceCapabilities; DPRINT("IopActionInterrogateDeviceStack(%p, %p)\n", DeviceNode, Context); Modified: trunk/reactos/ntoskrnl/kdbg/i386/i386-dis.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kdbg/i386/i386-di…
============================================================================== --- trunk/reactos/ntoskrnl/kdbg/i386/i386-dis.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/kdbg/i386/i386-dis.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -63,20 +63,20 @@ return(0); } -int static +static int KdbpReadMemory(unsigned int Addr, unsigned char* Data, unsigned int Length, struct disassemble_info * Ignored) { return KdbpSafeReadMemory(Data, (void *)Addr, Length); /* 0 means no error */ } -void static +static void KdbpMemoryError(int Status, unsigned int Addr, struct disassemble_info * Ignored) { } -void static +static void KdbpPrintAddressInCode(unsigned int Addr, struct disassemble_info * Ignored) { if (!KdbSymPrintAddress((void*)Addr)) @@ -85,7 +85,7 @@ } } -void static +static void KdbpNopPrintAddress(unsigned int Addr, struct disassemble_info * Ignored) { } Modified: trunk/reactos/ntoskrnl/ke/clock.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/clock.c?rev=37…
============================================================================== --- trunk/reactos/ntoskrnl/ke/clock.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ke/clock.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -16,7 +16,7 @@ LARGE_INTEGER KeBootTime; ULONGLONG KeBootTimeBias; -volatile KSYSTEM_TIME KeTickCount = {0}; +volatile KSYSTEM_TIME KeTickCount = { 0, 0, 0 }; ULONG KeMaximumIncrement; ULONG KeMinimumIncrement; ULONG KeTimeAdjustment; Modified: trunk/reactos/ntoskrnl/ke/freeldr.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/freeldr.c?rev=…
============================================================================== --- trunk/reactos/ntoskrnl/ke/freeldr.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ke/freeldr.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -59,12 +59,12 @@ CHAR BldrArcHwBuffer[16 * 1024]; // 0x1843C /* BIOS Memory Map */ -BIOS_MEMORY_DESCRIPTOR BiosMemoryDescriptors[16] = {{0}}; +BIOS_MEMORY_DESCRIPTOR BiosMemoryDescriptors[16] = { { 0, 0 }, }; PBIOS_MEMORY_DESCRIPTOR BiosMemoryDescriptorList = BiosMemoryDescriptors; /* ARC Memory Map */ ULONG NumberDescriptors = 0; -MEMORY_DESCRIPTOR MDArray[60] = {{0}}; +MEMORY_DESCRIPTOR MDArray[60] = { { 0, 0, 0 }, }; /* FUNCTIONS *****************************************************************/ Modified: trunk/reactos/ntoskrnl/ke/gmutex.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/gmutex.c?rev=3…
============================================================================== --- trunk/reactos/ntoskrnl/ke/gmutex.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ke/gmutex.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -85,8 +85,8 @@ } } -VOID FORCEINLINE +VOID FASTCALL KiAcquireGuardedMutex(IN OUT PKGUARDED_MUTEX GuardedMutex) { @@ -101,8 +101,8 @@ } } -VOID FORCEINLINE +VOID FASTCALL KiReleaseGuardedMutex(IN OUT PKGUARDED_MUTEX GuardedMutex) { Modified: trunk/reactos/ntoskrnl/ke/i386/cpu.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/cpu.c?rev…
============================================================================== --- trunk/reactos/ntoskrnl/ke/i386/cpu.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ke/i386/cpu.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -105,7 +105,7 @@ LONGLONG RDMSR(IN ULONG Register) { - LARGE_INTEGER LargeVal = {{0}}; + LARGE_INTEGER LargeVal = {{0, 0}}; Ke386Rdmsr(Register, LargeVal.HighPart, LargeVal.LowPart); return LargeVal.QuadPart; } @@ -840,7 +840,7 @@ NTAPI KiI386PentiumLockErrataFixup(VOID) { - KDESCRIPTOR IdtDescriptor = {0}; + KDESCRIPTOR IdtDescriptor = { 0, 0, 0 }; PKIDTENTRY NewIdt, NewIdt2; /* Allocate memory for a new IDT */ Modified: trunk/reactos/ntoskrnl/ke/i386/exp.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/exp.c?rev…
============================================================================== --- trunk/reactos/ntoskrnl/ke/i386/exp.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ke/i386/exp.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -1011,7 +1011,7 @@ _SEH2_EXCEPT((RtlCopyMemory(&SehExceptRecord, _SEH2_GetExceptionInformation()->ExceptionRecord, sizeof(EXCEPTION_RECORD)), EXCEPTION_EXECUTE_HANDLER)) { /* Check if we got a stack overflow and raise that instead */ - if (SehExceptRecord.ExceptionCode == + if ((NTSTATUS)SehExceptRecord.ExceptionCode == STATUS_STACK_OVERFLOW) { /* Copy the exception address and record */ Modified: trunk/reactos/ntoskrnl/ke/i386/kiinit.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/kiinit.c?…
============================================================================== --- trunk/reactos/ntoskrnl/ke/i386/kiinit.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ke/i386/kiinit.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -611,7 +611,7 @@ IN PKIPCR *Pcr, IN PKTSS *Tss) { - KDESCRIPTOR GdtDescriptor = {0}, IdtDescriptor = {0}; + KDESCRIPTOR GdtDescriptor = { 0, 0, 0 }, IdtDescriptor = { 0, 0, 0 }; KGDTENTRY TssSelector, PcrSelector; USHORT Tr = 0, Fs; Modified: trunk/reactos/ntoskrnl/ke/krnlinit.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/krnlinit.c?rev…
============================================================================== --- trunk/reactos/ntoskrnl/ke/krnlinit.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ke/krnlinit.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -111,7 +111,7 @@ KiComputeReciprocal(IN LONG Divisor, OUT PUCHAR Shift) { - LARGE_INTEGER Reciprocal = {{0}}; + LARGE_INTEGER Reciprocal = {{0, 0}}; LONG BitCount = 0, Remainder = 1; /* Start by calculating the remainder */ @@ -140,7 +140,7 @@ { /* Check if the current fraction value is too large */ if ((Reciprocal.LowPart == 0xFFFFFFFF) && - (Reciprocal.HighPart == 0xFFFFFFFF)) + (Reciprocal.HighPart == (LONG)0xFFFFFFFF)) { /* Set the high bit and reduce the bit count */ Reciprocal.LowPart = 0; Modified: trunk/reactos/ntoskrnl/ke/wait.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/wait.c?rev=378…
============================================================================== --- trunk/reactos/ntoskrnl/ke/wait.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ke/wait.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -628,7 +628,7 @@ { /* Check if it has an invalid count */ if ((Thread == CurrentObject->OwnerThread) && - (CurrentObject->Header.SignalState == MINLONG)) + (CurrentObject->Header.SignalState == (LONG)MINLONG)) { /* Raise an exception */ KiReleaseDispatcherLock(Thread->WaitIrql); Modified: trunk/reactos/ntoskrnl/mm/anonmem.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/anonmem.c?rev=…
============================================================================== --- trunk/reactos/ntoskrnl/mm/anonmem.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/mm/anonmem.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -436,7 +436,7 @@ return(STATUS_SUCCESS); } -VOID static +static VOID MmModifyAttributes(PMM_AVL_TABLE AddressSpace, PVOID BaseAddress, ULONG RegionSize, @@ -817,7 +817,7 @@ return(STATUS_SUCCESS); } -VOID static +static VOID MmFreeVirtualMemoryPage(PVOID Context, MEMORY_AREA* MemoryArea, PVOID Address, Modified: trunk/reactos/ntoskrnl/mm/mdlsup.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/mdlsup.c?rev=3…
============================================================================== --- trunk/reactos/ntoskrnl/mm/mdlsup.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/mm/mdlsup.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -261,7 +261,7 @@ if (Process) { /* Handle the accounting of locked pages */ - ASSERT(Process->NumberOfLockedPages >= 0); + /* ASSERT(Process->NumberOfLockedPages >= 0); */ // always true InterlockedExchangeAddSizeT(&Process->NumberOfLockedPages, -PageCount); } @@ -276,7 +276,7 @@ if (Process) { /* Handle the accounting of locked pages */ - ASSERT(Process->NumberOfLockedPages >= 0); + /* ASSERT(Process->NumberOfLockedPages >= 0); */ // always true InterlockedExchangeAddSizeT(&Process->NumberOfLockedPages, -PageCount); } Modified: trunk/reactos/ntoskrnl/mm/ncache.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ncache.c?rev=3…
============================================================================== --- trunk/reactos/ntoskrnl/mm/ncache.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/mm/ncache.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -76,7 +76,7 @@ return ((PVOID)Result); } -VOID static +static VOID MmFreeNonCachedPage(PVOID Context, MEMORY_AREA* MemoryArea, PVOID Address, PFN_TYPE Page, SWAPENTRY SwapEntry, BOOLEAN Dirty) Modified: trunk/reactos/ntoskrnl/mm/pagefile.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/pagefile.c?rev…
============================================================================== --- trunk/reactos/ntoskrnl/mm/pagefile.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/mm/pagefile.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -164,7 +164,7 @@ } } -LARGE_INTEGER static +static LARGE_INTEGER MmGetOffsetPageFile(PRETRIEVAL_POINTERS_BUFFER RetrievalPointers, LARGE_INTEGER Offset) { /* Simple binary search */ Modified: trunk/reactos/ntoskrnl/mm/region.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/region.c?rev=3…
============================================================================== --- trunk/reactos/ntoskrnl/mm/region.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/mm/region.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -15,7 +15,7 @@ /* FUNCTIONS *****************************************************************/ -VOID static +static VOID InsertAfterEntry(PLIST_ENTRY Previous, PLIST_ENTRY Entry) /* @@ -30,7 +30,7 @@ Previous->Flink = Entry; } -PMM_REGION static +static PMM_REGION MmSplitRegion(PMM_REGION InitialRegion, PVOID InitialBaseAddress, PVOID StartAddress, ULONG Length, ULONG NewType, ULONG NewProtect, PMM_AVL_TABLE AddressSpace, Modified: trunk/reactos/ntoskrnl/mm/section.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=…
============================================================================== --- trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -1990,7 +1990,7 @@ return(STATUS_SUCCESS); } -VOID static +static VOID MmAlterViewAttributes(PMM_AVL_TABLE AddressSpace, PVOID BaseAddress, ULONG RegionSize, @@ -3605,7 +3605,7 @@ return(Status); } -NTSTATUS static +static NTSTATUS MmMapViewOfSegment(PMM_AVL_TABLE AddressSpace, PROS_SECTION_OBJECT Section, PMM_SECTION_SEGMENT Segment, @@ -3865,7 +3865,7 @@ return(Status); } -VOID static +static VOID MmFreeSectionPage(PVOID Context, MEMORY_AREA* MemoryArea, PVOID Address, PFN_TYPE Page, SWAPENTRY SwapEntry, BOOLEAN Dirty) { Modified: trunk/reactos/ntoskrnl/mm/sysldr.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/sysldr.c?rev=3…
============================================================================== --- trunk/reactos/ntoskrnl/mm/sysldr.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/mm/sysldr.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -94,7 +94,7 @@ PVOID Base = NULL; SIZE_T ViewSize = 0; KAPC_STATE ApcState; - LARGE_INTEGER SectionOffset = {{0}}; + LARGE_INTEGER SectionOffset = {{0, 0}}; BOOLEAN LoadSymbols = FALSE; ULONG DriverSize; PVOID DriverBase; Modified: trunk/reactos/ntoskrnl/ob/oblink.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/oblink.c?rev=3…
============================================================================== --- trunk/reactos/ntoskrnl/ob/oblink.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ob/oblink.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -455,7 +455,7 @@ OUT PUNICODE_STRING LinkTarget, OUT PULONG ResultLength OPTIONAL) { - UNICODE_STRING SafeLinkTarget = {0}; + UNICODE_STRING SafeLinkTarget = { 0, 0, NULL }; POBJECT_SYMBOLIC_LINK SymlinkObject; KPROCESSOR_MODE PreviousMode = ExGetPreviousMode(); NTSTATUS Status = STATUS_SUCCESS; Modified: trunk/reactos/ntoskrnl/ob/obsdcach.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/obsdcach.c?rev…
============================================================================== --- trunk/reactos/ntoskrnl/ob/obsdcach.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ob/obsdcach.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -19,8 +19,8 @@ /* PRIVATE FUNCTIONS **********************************************************/ -VOID FORCEINLINE +VOID ObpSdAcquireLock(IN POB_SD_CACHE_LIST CacheEntry) { /* Acquire the lock */ @@ -28,8 +28,8 @@ ExAcquirePushLockExclusive(&CacheEntry->PushLock); } -VOID FORCEINLINE +VOID ObpSdReleaseLock(IN POB_SD_CACHE_LIST CacheEntry) { /* Release the lock */ @@ -37,8 +37,8 @@ KeLeaveCriticalRegion(); } -VOID FORCEINLINE +VOID ObpSdAcquireLockShared(IN POB_SD_CACHE_LIST CacheEntry) { /* Acquire the lock */ @@ -46,8 +46,8 @@ ExAcquirePushLockShared(&CacheEntry->PushLock); } -VOID FORCEINLINE +VOID ObpSdReleaseLockShared(IN POB_SD_CACHE_LIST CacheEntry) { /* Release the lock */ Modified: trunk/reactos/ntoskrnl/ps/kill.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/kill.c?rev=378…
============================================================================== --- trunk/reactos/ntoskrnl/ps/kill.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ps/kill.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -16,7 +16,7 @@ /* GLOBALS *******************************************************************/ -LIST_ENTRY PspReaperListHead = {0}; +LIST_ENTRY PspReaperListHead = { NULL, NULL }; WORK_QUEUE_ITEM PspReaperWorkItem; LARGE_INTEGER ShortTime = {{-10 * 100 * 1000, -1}}; @@ -778,7 +778,7 @@ ObFastDereferenceObject(&CurrentProcess->Token, PrimaryToken); /* Check if this is a VDM Process and rundown the VDM DPCs if so */ - if (CurrentProcess->VdmObjects);// VdmRundownDpcs(CurrentProcess); + if (CurrentProcess->VdmObjects) { /* VdmRundownDpcs(CurrentProcess); */ } /* Kill the process in the Object Manager */ ObKillProcess(CurrentProcess); Modified: trunk/reactos/ntoskrnl/ps/psmgr.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/psmgr.c?rev=37…
============================================================================== --- trunk/reactos/ntoskrnl/ps/psmgr.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ps/psmgr.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -223,7 +223,7 @@ IN BOOLEAN UseLargePages) { NTSTATUS Status; - LARGE_INTEGER Offset = {{0}}; + LARGE_INTEGER Offset = {{0, 0}}; SIZE_T ViewSize = 0; PVOID ImageBase = 0; @@ -443,7 +443,7 @@ /* Now multiply limits by 1MB */ PspDefaultPagedLimit <<= 20; PspDefaultNonPagedLimit <<= 20; - if (PspDefaultPagefileLimit != -1) PspDefaultPagefileLimit <<= 20; + if (PspDefaultPagefileLimit != -1U) PspDefaultPagefileLimit <<= 20; /* Initialize the Active Process List */ InitializeListHead(&PsActiveProcessHead); Modified: trunk/reactos/ntoskrnl/se/token.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/se/token.c?rev=37…
============================================================================== --- trunk/reactos/ntoskrnl/se/token.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/se/token.c [iso-8859-1] Wed Dec 3 11:28:59 2008 @@ -1964,7 +1964,7 @@ ULONG i; KPROCESSOR_MODE PreviousMode; ULONG nTokenPrivileges = 0; - LARGE_INTEGER LocalExpirationTime = {{0}}; + LARGE_INTEGER LocalExpirationTime = {{0, 0}}; NTSTATUS Status = STATUS_SUCCESS; PAGED_CODE();
16 years
1
0
0
0
← Newer
1
...
64
65
66
67
68
69
70
71
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Results per page:
10
25
50
100
200