VirtualBox

vbox的更動 62853 路徑 trunk/src/VBox/Additions


忽略:
時間撮記:
2016-8-1 下午10:30:03 (8 年 以前)
作者:
vboxsync
訊息:

GAs/common: warnings

位置:
trunk/src/VBox/Additions/common/VBoxGuest
檔案:
修改 3 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win-pnp.cpp

    r62521 r62853  
    5555static NTSTATUS vgdrvNtPnpIrpComplete(PDEVICE_OBJECT pDevObj, PIRP pIrp, PKEVENT pEvent)
    5656{
     57    RT_NOREF2(pDevObj, pIrp);
    5758    KeSetEvent(pEvent, 0, FALSE);
    5859    return STATUS_MORE_PROCESSING_REQUIRED;
     
    393394{
    394395#ifdef VBOX_STRICT
     396    RT_NOREF1(pDevObj);
    395397    PVBOXGUESTDEVEXTWIN pDevExt = (PVBOXGUESTDEVEXTWIN)pContext;
    396398    PIO_STACK_LOCATION  pIrpSp  = IoGetCurrentIrpStackLocation(pIrp);
     
    413415                                case PowerDeviceD0:
    414416                                    break;
     417                                default: /* Shut up MSC */ break;
    415418                            }
    416419                            break;
     420                        default: /* Shut up MSC */ break;
    417421                    }
    418422                    break;
     
    420424        }
    421425    }
     426#else
     427    RT_NOREF3(pDevObj, pIrp, pContext);
    422428#endif
    423429
     
    532538                            Log(("vgdrvNtPower: Power action hibernate!\n"));
    533539                            break;
     540
     541                        case PowerActionWarmEject:
     542                            Log(("vgdrvNtPower: PowerActionWarmEject!\n"));
     543                            break;
     544
     545                        default:
     546                            Log(("vgdrvNtPower: %d\n", enmPowerAction));
     547                            break;
    534548                    }
    535549
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp

    r62521 r62853  
    102102ULONG DriverEntry(PDRIVER_OBJECT pDrvObj, PUNICODE_STRING pRegPath)
    103103{
     104    RT_NOREF1(pRegPath);
    104105    NTSTATUS rc = STATUS_SUCCESS;
    105106
     
    628629     * IRP_MN_REMOVE_DEVICE (where we already did the cleanup),
    629630     * so don't do anything here (yet). */
     631    RT_NOREF1(pDrvObj);
    630632#endif /* !TARGET_NT4 */
    631633
     
    913915{
    914916    PVBOXGUESTDEVEXTWIN pDevExt = (PVBOXGUESTDEVEXTWIN)pDevObj->DeviceExtension;
    915 
    916917    LogFlowFuncEnter();
    917918
     
    927928    }
    928929
     930    /* just in case, since we shouldn't normally get here. */
     931    pIrp->IoStatus.Information = 0;
     932    pIrp->IoStatus.Status = STATUS_SUCCESS;
     933    IoCompleteRequest(pIrp, IO_NO_INCREMENT);
    929934    return STATUS_SUCCESS;
    930935}
     
    940945static NTSTATUS vgdrvNtNotSupportedStub(PDEVICE_OBJECT pDevObj, PIRP pIrp)
    941946{
     947    RT_NOREF1(pDevObj);
    942948    LogFlowFuncEnter();
    943949
     
    960966static void vgdrvNtDpcHandler(PKDPC pDPC, PDEVICE_OBJECT pDevObj, PIRP pIrp, PVOID pContext)
    961967{
     968    RT_NOREF3(pDPC, pIrp, pContext);
    962969    PVBOXGUESTDEVEXTWIN pDevExt = (PVBOXGUESTDEVEXTWIN)pDevObj->DeviceExtension;
    963970    Log3Func(("pDevExt=0x%p\n", pDevExt));
     
    992999static BOOLEAN vgdrvNtIsrHandler(PKINTERRUPT pInterrupt, PVOID pServiceContext)
    9931000{
     1001    RT_NOREF1(pInterrupt);
    9941002    PVBOXGUESTDEVEXTWIN pDevExt = (PVBOXGUESTDEVEXTWIN)pServiceContext;
    9951003    if (pDevExt == NULL)
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp

    r62679 r62853  
    617617{
    618618    VMMDevChangeMemBalloon *pReq;
     619    PRTR0MEMOBJ pMemObj = NULL;
    619620    int rc = VINF_SUCCESS;
    620621    uint32_t i;
    621     PRTR0MEMOBJ pMemObj = NULL;
     622    RT_NOREF1(pSession);
    622623
    623624    if (fInflate)
     
    919920        Log(("VGDrvCommonReinitDevExtAfterHibernation: could not report guest information to host, rc=%Rrc\n", rc));
    920921    LogFlow(("VGDrvCommonReinitDevExtAfterHibernation: returned with rc=%Rrc\n", rc));
     922    RT_NOREF1(pDevExt);
    921923    return rc;
    922924}
     
    17831785        kLevel_Invalid, kLevel_NoOne, kLevel_OnlyVBoxGuest, kLevel_OnlyKernel, kLevel_TrustedUsers, kLevel_AllUsers
    17841786    } enmRequired;
     1787    RT_NOREF1(pDevExt);
     1788
    17851789    switch (enmType)
    17861790    {
     
    24322436    int rc;
    24332437    LogFlow(("VBOXGUEST_IOCTL_WRITE_CORE_DUMP\n"));
     2438    RT_NOREF1(pDevExt);
    24342439
    24352440    rc = VbglGRAlloc((VMMDevRequestHeader **)&pReq, sizeof(*pReq), VMMDevReq_WriteCoreDump);
     
    26012606        VbglGRFree(&pReq->header);
    26022607    }
     2608    RT_NOREF1(pDevExt);
    26032609    return rc;
    26042610}
     
    27502756        VbglGRFree(&pReq->header);
    27512757    }
     2758    RT_NOREF1(pDevExt);
    27522759    return rc;
    27532760}
     
    29472954        VbglGRFree(&pReq->header);
    29482955    }
     2956    RT_NOREF1(pDevExt);
    29492957    return rc;
    29502958}
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette