mirror of
https://github.com/reactos/reactos.git
synced 2025-07-14 19:44:16 +00:00
- Some misc changes to fix some of the 250+ warnings in the MSVC build.
svn path=/trunk/; revision=24465
This commit is contained in:
parent
6951a4887c
commit
4ffb9d2c3e
16 changed files with 21 additions and 35 deletions
|
@ -21,9 +21,7 @@
|
||||||
#include "cm.h"
|
#include "cm.h"
|
||||||
|
|
||||||
#if defined (ALLOC_PRAGMA)
|
#if defined (ALLOC_PRAGMA)
|
||||||
#pragma alloc_text(INIT, CmInitHives)
|
#pragma alloc_text(INIT, CmInitSystem1)
|
||||||
#pragma alloc_text(INIT, CmInitializeRegistry)
|
|
||||||
#pragma alloc_text(INIT, CmInit2)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
POBJECT_TYPE ExEventObjectType = NULL;
|
POBJECT_TYPE _ExEventObjectType = NULL;
|
||||||
|
|
||||||
GENERIC_MAPPING ExpEventMapping =
|
GENERIC_MAPPING ExpEventMapping =
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,12 +14,12 @@
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
#if defined (ALLOC_PRAGMA)
|
#if defined (ALLOC_PRAGMA)
|
||||||
#pragma alloc_text(INIT, ExpInitializeSemaphoreImplementation()
|
#pragma alloc_text(INIT, ExpInitializeSemaphoreImplementation)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
||||||
POBJECT_TYPE ExSemaphoreObjectType;
|
POBJECT_TYPE _ExSemaphoreObjectType;
|
||||||
|
|
||||||
GENERIC_MAPPING ExSemaphoreMapping =
|
GENERIC_MAPPING ExSemaphoreMapping =
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,10 +15,6 @@
|
||||||
|
|
||||||
#define TICKSPERMINUTE 600000000
|
#define TICKSPERMINUTE 600000000
|
||||||
|
|
||||||
#if defined (ALLOC_PRAGMA)
|
|
||||||
#pragma alloc_text(INIT, ExpInitTimeZoneInfo)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
||||||
/* Note: Bias[minutes] = UTC - local time */
|
/* Note: Bias[minutes] = UTC - local time */
|
||||||
|
|
|
@ -12,11 +12,6 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
#if defined (ALLOC_PRAGMA)
|
|
||||||
#pragma alloc_text(INIT, FsRtlpInitFileLockingImplementation)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
NOTE:
|
NOTE:
|
||||||
I'm not using resource syncronization here, since FsRtlFastCheckLockForRead/Write
|
I'm not using resource syncronization here, since FsRtlFastCheckLockForRead/Write
|
||||||
|
|
|
@ -312,9 +312,9 @@ FsRtlRemoveMcbEntry(IN PMCB Mcb,
|
||||||
IN ULONG SectorCount)
|
IN ULONG SectorCount)
|
||||||
{
|
{
|
||||||
/* Call the large function */
|
/* Call the large function */
|
||||||
return FsRtlRemoveLargeMcbEntry(&Mcb->DummyFieldThatSizesThisStructureCorrectly,
|
FsRtlRemoveLargeMcbEntry(&Mcb->DummyFieldThatSizesThisStructureCorrectly,
|
||||||
(LONGLONG)Vbn,
|
(LONGLONG)Vbn,
|
||||||
(LONGLONG)SectorCount);
|
(LONGLONG)SectorCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@ extern ULONG ExpTimeZoneId;
|
||||||
extern ULONG ExpTickCountMultiplier;
|
extern ULONG ExpTickCountMultiplier;
|
||||||
extern ULONG ExpLastTimeZoneBias;
|
extern ULONG ExpLastTimeZoneBias;
|
||||||
extern POBJECT_TYPE ExEventPairObjectType;
|
extern POBJECT_TYPE ExEventPairObjectType;
|
||||||
|
extern POBJECT_TYPE _ExEventObjectType, _ExSemaphoreObjectType;
|
||||||
extern ULONG NtBuildNumber;
|
extern ULONG NtBuildNumber;
|
||||||
extern ULONG NtMajorVersion;
|
extern ULONG NtMajorVersion;
|
||||||
extern ULONG NtMinorVersion;
|
extern ULONG NtMinorVersion;
|
||||||
|
|
|
@ -62,6 +62,8 @@
|
||||||
//
|
//
|
||||||
#define IoFileObjectType _IoFileObjectType
|
#define IoFileObjectType _IoFileObjectType
|
||||||
#define PsThreadType _PsThreadType
|
#define PsThreadType _PsThreadType
|
||||||
|
#define ExEventObjectType _ExEventObjectType
|
||||||
|
#define ExSemaphoreObjectType _ExSemaphoreObjectType
|
||||||
#define KdDebuggerEnabled _KdDebuggerEnabled
|
#define KdDebuggerEnabled _KdDebuggerEnabled
|
||||||
#define KdDebuggerNotPresent _KdDebuggerNotPresent
|
#define KdDebuggerNotPresent _KdDebuggerNotPresent
|
||||||
#define FsRtlLegalAnsiCharacterArray _FsRtlLegalAnsiCharacterArray
|
#define FsRtlLegalAnsiCharacterArray _FsRtlLegalAnsiCharacterArray
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
#if defined (ALLOC_PRAGMA)
|
#if defined (ALLOC_PRAGMA)
|
||||||
#pragma alloc_text(INIT, IopInitBootLog)
|
#pragma alloc_text(INIT, IopInitBootLog)
|
||||||
#pragma alloc_text(INIT, IopStartBootLog()
|
#pragma alloc_text(INIT, IopStartBootLog)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
|
@ -59,7 +59,7 @@ VOID INIT_FUNCTION IopInitLookasideLists(VOID);
|
||||||
#pragma alloc_text(INIT, IoInitCancelHandling)
|
#pragma alloc_text(INIT, IoInitCancelHandling)
|
||||||
#pragma alloc_text(INIT, IoInitShutdownNotification)
|
#pragma alloc_text(INIT, IoInitShutdownNotification)
|
||||||
#pragma alloc_text(INIT, IopInitLookasideLists)
|
#pragma alloc_text(INIT, IopInitLookasideLists)
|
||||||
#pragma alloc_text(INIT, IoInit)
|
#pragma alloc_text(INIT, IoInitSystem)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* INIT FUNCTIONS ************************************************************/
|
/* INIT FUNCTIONS ************************************************************/
|
||||||
|
|
|
@ -28,9 +28,6 @@ PIO_BUS_TYPE_GUID_LIST IopBusTypeGuidList = NULL;
|
||||||
#if defined (ALLOC_PRAGMA)
|
#if defined (ALLOC_PRAGMA)
|
||||||
#pragma alloc_text(INIT, PnpInit)
|
#pragma alloc_text(INIT, PnpInit)
|
||||||
#pragma alloc_text(INIT, PnpInit2)
|
#pragma alloc_text(INIT, PnpInit2)
|
||||||
#pragma alloc_text(INIT, IopUpdateRootKey)
|
|
||||||
#pragma alloc_text(INIT, IopEnumerateDetectedDevices)
|
|
||||||
#pragma alloc_text(INIT, IopIsAcpiComputer)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct _INVALIDATE_DEVICE_RELATION_DATA
|
typedef struct _INVALIDATE_DEVICE_RELATION_DATA
|
||||||
|
@ -41,7 +38,7 @@ typedef struct _INVALIDATE_DEVICE_RELATION_DATA
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
} INVALIDATE_DEVICE_RELATION_DATA, *PINVALIDATE_DEVICE_RELATION_DATA;
|
} INVALIDATE_DEVICE_RELATION_DATA, *PINVALIDATE_DEVICE_RELATION_DATA;
|
||||||
|
|
||||||
static VOID CALLBACK
|
static VOID NTAPI
|
||||||
IopInvalidateDeviceRelations(
|
IopInvalidateDeviceRelations(
|
||||||
IN PDEVICE_OBJECT DeviceObject,
|
IN PDEVICE_OBJECT DeviceObject,
|
||||||
IN PVOID InvalidateContext);
|
IN PVOID InvalidateContext);
|
||||||
|
@ -2456,7 +2453,7 @@ IopInitializePnpServices(IN PDEVICE_NODE DeviceNode,
|
||||||
* The call can be make synchronous by defining the Event field
|
* The call can be make synchronous by defining the Event field
|
||||||
* of the INVALIDATE_DEVICE_RELATION_DATA structure
|
* of the INVALIDATE_DEVICE_RELATION_DATA structure
|
||||||
*/
|
*/
|
||||||
static VOID CALLBACK
|
static VOID NTAPI
|
||||||
IopInvalidateDeviceRelations(
|
IopInvalidateDeviceRelations(
|
||||||
IN PDEVICE_OBJECT DeviceObject,
|
IN PDEVICE_OBJECT DeviceObject,
|
||||||
IN PVOID InvalidateContext) /* PINVALIDATE_DEVICE_RELATION_DATA */
|
IN PVOID InvalidateContext) /* PINVALIDATE_DEVICE_RELATION_DATA */
|
||||||
|
@ -2476,7 +2473,7 @@ IopInvalidateDeviceRelations(
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
||||||
DPRINT("DeviceObject 0x%p, Type %d\n", DeviceObject, Type);
|
DPRINT("DeviceObject 0x%p\n", DeviceObject);
|
||||||
|
|
||||||
DPRINT("Sending IRP_MN_QUERY_DEVICE_RELATIONS to device stack\n");
|
DPRINT("Sending IRP_MN_QUERY_DEVICE_RELATIONS to device stack\n");
|
||||||
|
|
||||||
|
|
|
@ -851,7 +851,7 @@ KeBugCheckWithTf(IN ULONG BugCheckCode,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Raise IRQL to HIGH_LEVEL */
|
/* Raise IRQL to HIGH_LEVEL */
|
||||||
Ke386DisableInterrupts();
|
_disable();
|
||||||
KeRaiseIrql(HIGH_LEVEL, &OldIrql);
|
KeRaiseIrql(HIGH_LEVEL, &OldIrql);
|
||||||
|
|
||||||
/* Unlock the Kernel Adress Space if we own it */
|
/* Unlock the Kernel Adress Space if we own it */
|
||||||
|
|
|
@ -43,7 +43,7 @@ ULONG KiPageFaultHandler(PKTRAP_FRAME Tf, ULONG ExceptionNr)
|
||||||
/* it's safe to enable interrupts after cr2 has been saved */
|
/* it's safe to enable interrupts after cr2 has been saved */
|
||||||
if (Tf->EFlags & (X86_EFLAGS_VM|X86_EFLAGS_IF))
|
if (Tf->EFlags & (X86_EFLAGS_VM|X86_EFLAGS_IF))
|
||||||
{
|
{
|
||||||
Ke386EnableInterrupts();
|
_enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cr2 >= (ULONG_PTR)MmSystemRangeStart)
|
if (cr2 >= (ULONG_PTR)MmSystemRangeStart)
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
/*
|
/*
|
||||||
* Compiler defined symbols
|
* Compiler defined symbols
|
||||||
*/
|
*/
|
||||||
|
extern unsigned int _image_base__;
|
||||||
extern unsigned int _text_start__;
|
extern unsigned int _text_start__;
|
||||||
extern unsigned int _text_end__;
|
extern unsigned int _text_end__;
|
||||||
|
|
||||||
|
@ -158,7 +159,6 @@ MmInitVirtualMemory(ULONG_PTR LastKernelAddress,
|
||||||
0,
|
0,
|
||||||
BoundaryAddressMultiple);
|
BoundaryAddressMultiple);
|
||||||
|
|
||||||
extern unsigned int _image_base__;
|
|
||||||
BaseAddress = (PVOID)&_image_base__;
|
BaseAddress = (PVOID)&_image_base__;
|
||||||
Length = PAGE_ROUND_UP(((ULONG_PTR)&_text_end__)) - (ULONG_PTR)&_image_base__;
|
Length = PAGE_ROUND_UP(((ULONG_PTR)&_text_end__)) - (ULONG_PTR)&_image_base__;
|
||||||
ParamLength = ParamLength - Length;
|
ParamLength = ParamLength - Length;
|
||||||
|
|
|
@ -99,11 +99,11 @@ ExCreateCallback@16
|
||||||
ExDeleteNPagedLookasideList@4
|
ExDeleteNPagedLookasideList@4
|
||||||
ExDeletePagedLookasideList@4
|
ExDeletePagedLookasideList@4
|
||||||
ExDeleteResourceLite@4
|
ExDeleteResourceLite@4
|
||||||
ExDesktopObjectType DATA
|
ExDesktopObjectType
|
||||||
ExDisableResourceBoostLite@4
|
ExDisableResourceBoostLite@4
|
||||||
ExEnumHandleTable@16
|
ExEnumHandleTable@16
|
||||||
@ExEnterCriticalRegionAndAcquireFastMutexUnsafe@4
|
@ExEnterCriticalRegionAndAcquireFastMutexUnsafe@4
|
||||||
ExEventObjectType DATA
|
ExEventObjectType=_ExEventObjectType
|
||||||
ExExtendZone@12
|
ExExtendZone@12
|
||||||
ExFreePool@4
|
ExFreePool@4
|
||||||
ExFreePoolWithTag@8
|
ExFreePoolWithTag@8
|
||||||
|
@ -152,7 +152,7 @@ ExReinitializeResourceLite@4
|
||||||
@ExReleaseFastMutexUnsafeAndLeaveCriticalRegion@4
|
@ExReleaseFastMutexUnsafeAndLeaveCriticalRegion@4
|
||||||
ExReleaseResourceForThreadLite@8
|
ExReleaseResourceForThreadLite@8
|
||||||
@ExReleaseResourceLite@4
|
@ExReleaseResourceLite@4
|
||||||
ExSemaphoreObjectType DATA
|
ExSemaphoreObjectType=_ExSemaphoreObjectType
|
||||||
ExSetResourceOwnerPointer@8
|
ExSetResourceOwnerPointer@8
|
||||||
ExSetTimerResolution@8
|
ExSetTimerResolution@8
|
||||||
ExSystemExceptionFilter@0
|
ExSystemExceptionFilter@0
|
||||||
|
|
|
@ -14,9 +14,6 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
#if defined (ALLOC_PRAGMA)
|
|
||||||
#pragma alloc_text(INIT, PsInitJobManagment)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue