mirror of
https://github.com/reactos/reactos.git
synced 2024-07-03 19:24:20 +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
|
@ -21,9 +21,7 @@
|
|||
#include "cm.h"
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, CmInitHives)
|
||||
#pragma alloc_text(INIT, CmInitializeRegistry)
|
||||
#pragma alloc_text(INIT, CmInit2)
|
||||
#pragma alloc_text(INIT, CmInitSystem1)
|
||||
#endif
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
POBJECT_TYPE ExEventObjectType = NULL;
|
||||
POBJECT_TYPE _ExEventObjectType = NULL;
|
||||
|
||||
GENERIC_MAPPING ExpEventMapping =
|
||||
{
|
||||
|
|
|
@ -14,12 +14,12 @@
|
|||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ExpInitializeSemaphoreImplementation()
|
||||
#pragma alloc_text(INIT, ExpInitializeSemaphoreImplementation)
|
||||
#endif
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
POBJECT_TYPE ExSemaphoreObjectType;
|
||||
POBJECT_TYPE _ExSemaphoreObjectType;
|
||||
|
||||
GENERIC_MAPPING ExSemaphoreMapping =
|
||||
{
|
||||
|
|
|
@ -15,10 +15,6 @@
|
|||
|
||||
#define TICKSPERMINUTE 600000000
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ExpInitTimeZoneInfo)
|
||||
#endif
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
/* Note: Bias[minutes] = UTC - local time */
|
||||
|
|
|
@ -12,11 +12,6 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, FsRtlpInitFileLockingImplementation)
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
NOTE:
|
||||
I'm not using resource syncronization here, since FsRtlFastCheckLockForRead/Write
|
||||
|
|
|
@ -312,9 +312,9 @@ FsRtlRemoveMcbEntry(IN PMCB Mcb,
|
|||
IN ULONG SectorCount)
|
||||
{
|
||||
/* Call the large function */
|
||||
return FsRtlRemoveLargeMcbEntry(&Mcb->DummyFieldThatSizesThisStructureCorrectly,
|
||||
(LONGLONG)Vbn,
|
||||
(LONGLONG)SectorCount);
|
||||
FsRtlRemoveLargeMcbEntry(&Mcb->DummyFieldThatSizesThisStructureCorrectly,
|
||||
(LONGLONG)Vbn,
|
||||
(LONGLONG)SectorCount);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ extern ULONG ExpTimeZoneId;
|
|||
extern ULONG ExpTickCountMultiplier;
|
||||
extern ULONG ExpLastTimeZoneBias;
|
||||
extern POBJECT_TYPE ExEventPairObjectType;
|
||||
extern POBJECT_TYPE _ExEventObjectType, _ExSemaphoreObjectType;
|
||||
extern ULONG NtBuildNumber;
|
||||
extern ULONG NtMajorVersion;
|
||||
extern ULONG NtMinorVersion;
|
||||
|
|
|
@ -62,6 +62,8 @@
|
|||
//
|
||||
#define IoFileObjectType _IoFileObjectType
|
||||
#define PsThreadType _PsThreadType
|
||||
#define ExEventObjectType _ExEventObjectType
|
||||
#define ExSemaphoreObjectType _ExSemaphoreObjectType
|
||||
#define KdDebuggerEnabled _KdDebuggerEnabled
|
||||
#define KdDebuggerNotPresent _KdDebuggerNotPresent
|
||||
#define FsRtlLegalAnsiCharacterArray _FsRtlLegalAnsiCharacterArray
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, IopInitBootLog)
|
||||
#pragma alloc_text(INIT, IopStartBootLog()
|
||||
#pragma alloc_text(INIT, IopStartBootLog)
|
||||
#endif
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
|
|
@ -59,7 +59,7 @@ VOID INIT_FUNCTION IopInitLookasideLists(VOID);
|
|||
#pragma alloc_text(INIT, IoInitCancelHandling)
|
||||
#pragma alloc_text(INIT, IoInitShutdownNotification)
|
||||
#pragma alloc_text(INIT, IopInitLookasideLists)
|
||||
#pragma alloc_text(INIT, IoInit)
|
||||
#pragma alloc_text(INIT, IoInitSystem)
|
||||
#endif
|
||||
|
||||
/* INIT FUNCTIONS ************************************************************/
|
||||
|
|
|
@ -28,9 +28,6 @@ PIO_BUS_TYPE_GUID_LIST IopBusTypeGuidList = NULL;
|
|||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, PnpInit)
|
||||
#pragma alloc_text(INIT, PnpInit2)
|
||||
#pragma alloc_text(INIT, IopUpdateRootKey)
|
||||
#pragma alloc_text(INIT, IopEnumerateDetectedDevices)
|
||||
#pragma alloc_text(INIT, IopIsAcpiComputer)
|
||||
#endif
|
||||
|
||||
typedef struct _INVALIDATE_DEVICE_RELATION_DATA
|
||||
|
@ -41,7 +38,7 @@ typedef struct _INVALIDATE_DEVICE_RELATION_DATA
|
|||
NTSTATUS Status;
|
||||
} INVALIDATE_DEVICE_RELATION_DATA, *PINVALIDATE_DEVICE_RELATION_DATA;
|
||||
|
||||
static VOID CALLBACK
|
||||
static VOID NTAPI
|
||||
IopInvalidateDeviceRelations(
|
||||
IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PVOID InvalidateContext);
|
||||
|
@ -2456,7 +2453,7 @@ IopInitializePnpServices(IN PDEVICE_NODE DeviceNode,
|
|||
* The call can be make synchronous by defining the Event field
|
||||
* of the INVALIDATE_DEVICE_RELATION_DATA structure
|
||||
*/
|
||||
static VOID CALLBACK
|
||||
static VOID NTAPI
|
||||
IopInvalidateDeviceRelations(
|
||||
IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PVOID InvalidateContext) /* PINVALIDATE_DEVICE_RELATION_DATA */
|
||||
|
@ -2476,7 +2473,7 @@ IopInvalidateDeviceRelations(
|
|||
NTSTATUS Status;
|
||||
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");
|
||||
|
||||
|
|
|
@ -851,7 +851,7 @@ KeBugCheckWithTf(IN ULONG BugCheckCode,
|
|||
}
|
||||
|
||||
/* Raise IRQL to HIGH_LEVEL */
|
||||
Ke386DisableInterrupts();
|
||||
_disable();
|
||||
KeRaiseIrql(HIGH_LEVEL, &OldIrql);
|
||||
|
||||
/* 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 */
|
||||
if (Tf->EFlags & (X86_EFLAGS_VM|X86_EFLAGS_IF))
|
||||
{
|
||||
Ke386EnableInterrupts();
|
||||
_enable();
|
||||
}
|
||||
|
||||
if (cr2 >= (ULONG_PTR)MmSystemRangeStart)
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
/*
|
||||
* Compiler defined symbols
|
||||
*/
|
||||
extern unsigned int _image_base__;
|
||||
extern unsigned int _text_start__;
|
||||
extern unsigned int _text_end__;
|
||||
|
||||
|
@ -158,7 +159,6 @@ MmInitVirtualMemory(ULONG_PTR LastKernelAddress,
|
|||
0,
|
||||
BoundaryAddressMultiple);
|
||||
|
||||
extern unsigned int _image_base__;
|
||||
BaseAddress = (PVOID)&_image_base__;
|
||||
Length = PAGE_ROUND_UP(((ULONG_PTR)&_text_end__)) - (ULONG_PTR)&_image_base__;
|
||||
ParamLength = ParamLength - Length;
|
||||
|
|
|
@ -99,11 +99,11 @@ ExCreateCallback@16
|
|||
ExDeleteNPagedLookasideList@4
|
||||
ExDeletePagedLookasideList@4
|
||||
ExDeleteResourceLite@4
|
||||
ExDesktopObjectType DATA
|
||||
ExDesktopObjectType
|
||||
ExDisableResourceBoostLite@4
|
||||
ExEnumHandleTable@16
|
||||
@ExEnterCriticalRegionAndAcquireFastMutexUnsafe@4
|
||||
ExEventObjectType DATA
|
||||
ExEventObjectType=_ExEventObjectType
|
||||
ExExtendZone@12
|
||||
ExFreePool@4
|
||||
ExFreePoolWithTag@8
|
||||
|
@ -152,7 +152,7 @@ ExReinitializeResourceLite@4
|
|||
@ExReleaseFastMutexUnsafeAndLeaveCriticalRegion@4
|
||||
ExReleaseResourceForThreadLite@8
|
||||
@ExReleaseResourceLite@4
|
||||
ExSemaphoreObjectType DATA
|
||||
ExSemaphoreObjectType=_ExSemaphoreObjectType
|
||||
ExSetResourceOwnerPointer@8
|
||||
ExSetTimerResolution@8
|
||||
ExSystemExceptionFilter@0
|
||||
|
|
|
@ -14,9 +14,6 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, PsInitJobManagment)
|
||||
#endif
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
|
|
Loading…
Reference in a new issue