mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 13:34:53 +00:00
Silence compiler warnings (8/11).
svn path=/trunk/; revision=37830
This commit is contained in:
parent
ff091bdac5
commit
7e3410d2b3
|
@ -19,9 +19,9 @@ typedef struct
|
|||
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
|
||||
|
|
|
@ -162,7 +162,9 @@ EnumDeviceClasses(INT ClassIndex,
|
|||
}
|
||||
|
||||
if (Ret == CR_INVALID_DATA)
|
||||
{
|
||||
; /*FIXME: what should we do here? */
|
||||
}
|
||||
|
||||
/* handle other errors... */
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@ int main(int argc, char **argv)
|
|||
struct sockaddr_in sin;
|
||||
struct hostent *hp;
|
||||
struct servent *sp;
|
||||
int s;
|
||||
SOCKET s;
|
||||
|
||||
WORD wVersionRequested;
|
||||
WSADATA wsaData;
|
||||
|
|
|
@ -472,7 +472,7 @@ SndMixerEnumProducts(PSND_MIXER Mixer,
|
|||
INT
|
||||
SndMixerGetDestinationCount(PSND_MIXER Mixer)
|
||||
{
|
||||
return (Mixer->hmx ? Mixer->Caps.cDestinations : -1);
|
||||
return (Mixer->hmx ? (INT)Mixer->Caps.cDestinations : -1);
|
||||
}
|
||||
|
||||
BOOL
|
||||
|
|
|
@ -241,7 +241,7 @@ static VOID
|
|||
UpdatePrefDlgControls(PPREFERENCES_CONTEXT Context,
|
||||
DWORD LineID)
|
||||
{
|
||||
UINT OldID, MixerID = 0;
|
||||
INT OldID, MixerID = 0;
|
||||
INT DeviceCbIndex;
|
||||
|
||||
/* select the mixer */
|
||||
|
@ -381,8 +381,8 @@ DlgPreferencesProc(HWND hwndDlg,
|
|||
{
|
||||
if (HIWORD(wParam) == CBN_SELCHANGE)
|
||||
{
|
||||
DWORD LineID;
|
||||
DWORD Index;
|
||||
INT LineID;
|
||||
INT Index;
|
||||
|
||||
Index = SendDlgItemMessage(hwndDlg,
|
||||
IDC_LINE,
|
||||
|
@ -429,7 +429,7 @@ DlgPreferencesProc(HWND hwndDlg,
|
|||
case IDC_OTHER:
|
||||
{
|
||||
INT LineCbIndex;
|
||||
DWORD LineID;
|
||||
INT LineID;
|
||||
|
||||
EnableWindow(GetDlgItem(hwndDlg,
|
||||
IDC_LINE),
|
||||
|
|
|
@ -162,7 +162,7 @@ PBYTE LogfAllocAndBuildNewRecord(LPDWORD lpRecSize,
|
|||
DWORD dwDataSize,
|
||||
LPVOID lpRawData);
|
||||
|
||||
void __inline LogfFreeRecord(LPVOID Rec);
|
||||
__inline void LogfFreeRecord(LPVOID Rec);
|
||||
|
||||
/* eventlog.c */
|
||||
VOID PRINT_HEADER(PFILE_HEADER header);
|
||||
|
|
|
@ -899,7 +899,7 @@ PBYTE LogfAllocAndBuildNewRecord(LPDWORD lpRecSize,
|
|||
return Buffer;
|
||||
}
|
||||
|
||||
void __inline LogfFreeRecord(LPVOID Rec)
|
||||
__inline void LogfFreeRecord(LPVOID Rec)
|
||||
{
|
||||
HeapFree(MyHeap, 0, Rec);
|
||||
}
|
||||
|
|
|
@ -343,9 +343,9 @@ NTSTATUS ElfrOpenELA(
|
|||
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 &&
|
||||
|
|
|
@ -41,7 +41,7 @@ typedef HRESULT (APIENTRY *SHWINHELP)(HWND, LPWSTR, UINT, DWORD);
|
|||
/* 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];
|
||||
|
|
|
@ -141,7 +141,7 @@ TrayClockWnd_GetMinimumSize(IN OUT PTRAY_CLOCK_WND_DATA This,
|
|||
{
|
||||
WORD iLinesVisible = 0;
|
||||
INT i;
|
||||
SIZE szMax = {0};
|
||||
SIZE szMax = { 0, 0 };
|
||||
|
||||
if (!This->LinesMeasured)
|
||||
This->LinesMeasured = TrayClockWnd_MeasureLines(This);
|
||||
|
@ -713,7 +713,7 @@ typedef struct _TRAY_NOTIFY_WND_DATA
|
|||
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 @@ TrayNotifyWnd_GetMinimumSize(IN OUT PTRAY_NOTIFY_WND_DATA This,
|
|||
|
||||
if (!This->HideClock)
|
||||
{
|
||||
SIZE szClock = {0};
|
||||
SIZE szClock = { 0, 0 };
|
||||
|
||||
if (Horizontal)
|
||||
{
|
||||
|
|
|
@ -992,7 +992,7 @@ static VOID
|
|||
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 @@ ITrayWindowImpl_AlignControls(IN OUT ITrayWindowImpl *This,
|
|||
{
|
||||
RECT rcClient;
|
||||
SIZE TraySize, StartSize;
|
||||
POINT ptTrayNotify = {0};
|
||||
POINT ptTrayNotify = { 0, 0 };
|
||||
BOOL Horizontal;
|
||||
HDWP dwp;
|
||||
|
||||
|
@ -1131,7 +1131,7 @@ ITrayWindowImpl_AlignControls(IN OUT ITrayWindowImpl *This,
|
|||
/* Resize/Move the rebar control */
|
||||
if (This->hwndRebar != NULL)
|
||||
{
|
||||
POINT ptRebar = {0};
|
||||
POINT ptRebar = { 0, 0 };
|
||||
SIZE szRebar;
|
||||
|
||||
SetWindowStyle(This->hwndRebar,
|
||||
|
|
|
@ -127,7 +127,7 @@ HANDLE WINAPI SHCreateDesktop(IShellDesktopTray*);
|
|||
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 @@ SHCreateDesktop(IShellDesktopTray* sdt)
|
|||
}
|
||||
|
||||
typedef BOOL (WINAPI *PSHDesktopMessageLoop)(HANDLE);
|
||||
static BOOL __inline
|
||||
static __inline BOOL
|
||||
SHDesktopMessageLoop(IN HANDLE hDesktop)
|
||||
{
|
||||
static PSHDesktopMessageLoop Func = NULL;
|
||||
|
@ -240,7 +240,7 @@ HRESULT WINAPI SHGetPerScreenResName(OUT LPWSTR lpResName,
|
|||
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 @@ SHGetPerScreenResName(OUT LPWSTR lpResName,
|
|||
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)
|
||||
|
|
|
@ -220,7 +220,7 @@ LPTSTR *WINAPI CommandLineToArgvT(LPCTSTR lpCmdLine, int *lpArgc)
|
|||
// 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)
|
||||
|
|
|
@ -71,7 +71,7 @@ SmpCreatePT (IN OUT PHANDLE hPort,
|
|||
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};
|
||||
|
|
|
@ -41,12 +41,12 @@ SmCreateUserProcess (LPWSTR ImagePath,
|
|||
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__);
|
||||
|
|
Loading…
Reference in a new issue