[ros-diffs] [dgorbachev] 37823: Silence compiler warnings (1/11).

dgorbachev at svn.reactos.org dgorbachev at svn.reactos.org
Wed Dec 3 18:28:25 CET 2008


Author: dgorbachev
Date: Wed Dec  3 11:28:24 2008
New Revision: 37823

URL: http://svn.reactos.org/svn/reactos?rev=37823&view=rev
Log:
Silence compiler warnings (1/11).

Modified:
    trunk/reactos/include/ddk/ntstrsafe.h
    trunk/reactos/include/host/typedefs.h
    trunk/reactos/include/ndk/dbgktypes.h
    trunk/reactos/include/ndk/rtlfuncs.h
    trunk/reactos/include/reactos/dll/desk/deskcplx.h
    trunk/reactos/include/reactos/probe.h

Modified: trunk/reactos/include/ddk/ntstrsafe.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/ntstrsafe.h?rev=37823&r1=37822&r2=37823&view=diff
==============================================================================
--- trunk/reactos/include/ddk/ntstrsafe.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/ntstrsafe.h [iso-8859-1] Wed Dec  3 11:28:24 2008
@@ -140,13 +140,13 @@
                         IN va_list argList)
 {
     NTSTATUS Status = STATUS_SUCCESS;
-    ULONG Return;
+    LONG Return;
     SIZE_T MaxLength, LocalNewLength = 0;
 
     MaxLength = Length - 1;
 
     Return = _vsnprintf(Destination, MaxLength, Format, argList);
-    if ((Return < 0) || (Return > MaxLength))
+    if ((Return < 0) || ((SIZE_T)Return > MaxLength))
     {
         Destination += MaxLength;
         *Destination = ANSI_NULL;
@@ -155,7 +155,7 @@
 
         Status = STATUS_BUFFER_OVERFLOW;
     }
-    else if (Return == MaxLength)
+    else if ((SIZE_T)Return == MaxLength)
     {
         Destination += MaxLength;
         *Destination = ANSI_NULL;

Modified: trunk/reactos/include/host/typedefs.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/host/typedefs.h?rev=37823&r1=37822&r2=37823&view=diff
==============================================================================
--- trunk/reactos/include/host/typedefs.h [iso-8859-1] (original)
+++ trunk/reactos/include/host/typedefs.h [iso-8859-1] Wed Dec  3 11:28:24 2008
@@ -153,8 +153,8 @@
     ListHead->Blink = Entry;
 }
 
+static __inline
 BOOLEAN
-static __inline
 IsListEmpty(
             IN const LIST_ENTRY * ListHead
             )

Modified: trunk/reactos/include/ndk/dbgktypes.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/dbgktypes.h?rev=37823&r1=37822&r2=37823&view=diff
==============================================================================
--- trunk/reactos/include/ndk/dbgktypes.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/dbgktypes.h [iso-8859-1] Wed Dec  3 11:28:24 2008
@@ -191,7 +191,7 @@
 {
     PORT_MESSAGE h;
     DBGKM_APINUMBER ApiNumber;
-    ULONG ReturnedStatus;
+    NTSTATUS ReturnedStatus;
     union
     {
         DBGKM_EXCEPTION Exception;

Modified: trunk/reactos/include/ndk/rtlfuncs.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/rtlfuncs.h?rev=37823&r1=37822&r2=37823&view=diff
==============================================================================
--- trunk/reactos/include/ndk/rtlfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/rtlfuncs.h [iso-8859-1] Wed Dec  3 11:28:24 2008
@@ -77,8 +77,8 @@
     ListHead->Blink = Entry;
 }
 
-BOOLEAN
 FORCEINLINE
+BOOLEAN
 IsListEmpty(
     IN const LIST_ENTRY * ListHead
 )

Modified: trunk/reactos/include/reactos/dll/desk/deskcplx.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/dll/desk/deskcplx.h?rev=37823&r1=37822&r2=37823&view=diff
==============================================================================
--- trunk/reactos/include/reactos/dll/desk/deskcplx.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/dll/desk/deskcplx.h [iso-8859-1] Wed Dec  3 11:28:24 2008
@@ -44,7 +44,7 @@
 
 LONG WINAPI DisplaySaveSettings(PVOID pContext, HWND hwndPropSheet);
 
-static PDESK_EXT_INTERFACE __inline
+static __inline PDESK_EXT_INTERFACE
 QueryDeskCplExtInterface(IDataObject *pdo)
 {
     PDESK_EXT_INTERFACE pRecvBuffer, pExtIface = NULL;
@@ -80,7 +80,7 @@
     return pExtIface;
 }
 
-static LPTSTR __inline
+static __inline LPTSTR
 QueryDeskCplString(IDataObject *pdo, UINT cfFormat)
 {
     FORMATETC fetc;
@@ -118,7 +118,7 @@
     return lpStr;
 }
 
-static LONG __inline
+static __inline LONG
 DeskCplExtDisplaySaveSettings(PDESK_EXT_INTERFACE DeskExtInterface,
                               HWND hwndDlg)
 {

Modified: trunk/reactos/include/reactos/probe.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/probe.h?rev=37823&r1=37822&r2=37823&view=diff
==============================================================================
--- trunk/reactos/include/reactos/probe.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/probe.h [iso-8859-1] Wed Dec  3 11:28:24 2008
@@ -5,7 +5,7 @@
 #error Header intended for use by NTOSKRNL/WIN32K only!
 #endif
 
-static const UNICODE_STRING __emptyUnicodeString = {0};
+static const UNICODE_STRING __emptyUnicodeString = {0, 0, NULL};
 static const LARGE_INTEGER __emptyLargeInteger = {{0, 0}};
 static const ULARGE_INTEGER __emptyULargeInteger = {{0, 0}};
 static const IO_STATUS_BLOCK __emptyIoStatusBlock = {{0}, 0};



More information about the Ros-diffs mailing list