[ros-diffs] [mnordell] 29828: Unbreak build (unused local var's warnings when not using the quota code).

mnordell at svn.reactos.org mnordell at svn.reactos.org
Tue Oct 23 14:31:21 CEST 2007


Author: mnordell
Date: Tue Oct 23 16:31:21 2007
New Revision: 29828

URL: http://svn.reactos.org/svn/reactos?rev=29828&view=rev
Log:
Unbreak build (unused local var's warnings when not using the quota code).

Modified:
    trunk/reactos/ntoskrnl/ps/quota.c

Modified: trunk/reactos/ntoskrnl/ps/quota.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/quota.c?rev=29828&r1=29827&r2=29828&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ps/quota.c (original)
+++ trunk/reactos/ntoskrnl/ps/quota.c Tue Oct 23 16:31:21 2007
@@ -182,7 +182,10 @@
                          IN POOL_TYPE PoolType,
                          IN ULONG Amount)
 {
+#ifdef PS_QUOTA_ENABLE_QUOTA_CODE
     INT PoolIndex;
+#endif
+
     /* Don't do anything for the system process */
     if (Process == PsInitialSystemProcess) return STATUS_SUCCESS;
 
@@ -220,7 +223,10 @@
                   IN POOL_TYPE PoolType,
                   IN ULONG_PTR Amount)
 {
+#ifdef PS_QUOTA_ENABLE_QUOTA_CODE
     INT PoolIndex;
+#endif
+
     /* Don't do anything for the system process */
     if (Process == PsInitialSystemProcess) return;
 




More information about the Ros-diffs mailing list