This one is used for debugging. We have this in other places, too, so we should add a define __unused __attribute__((unused)) for GCC or something
Or we simply silence the warning.
Am 19.07.2013 19:06, schrieb ion@svn.reactos.org:
============================================================================== --- trunk/reactos/win32ss/gdi/ntgdi/gdiobj.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/gdi/ntgdi/gdiobj.c [iso-8859-1] Fri Jul
19 17:06:14 2013
@@ -570,20 +570,18 @@ NTAPI GDIOBJ_vReferenceObjectByPointer(POBJ pobj) {
- ULONG cRefs;
- /* Check if the object has a handle */ if (GDI_HANDLE_GET_INDEX(pobj->hHmgr)) { /* Increase the handle's reference count */ ULONG ulIndex = GDI_HANDLE_GET_INDEX(pobj->hHmgr); ASSERT((gpaulRefCount[ulIndex] & REF_MASK_COUNT) > 0);
cRefs = InterlockedIncrement((LONG*)&gpaulRefCount[ulIndex]);
} else { /* Increase the object's reference count */InterlockedIncrement((LONG*)&gpaulRefCount[ulIndex]);
cRefs = InterlockedIncrement((LONG*)&pobj->ulShareCount);
InterlockedIncrement((LONG*)&pobj->ulShareCount);}
DBG_LOGEVENT(&pobj->slhLog, EVENT_REFERENCE, cRefs);