VirtualBox

Changeset 63066 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Aug 5, 2016 9:47:28 PM (8 years ago)
Author:
vboxsync
Message:

GA/NT/Mouse: warnings

Location:
trunk/src/VBox/Additions/WINNT/Mouse
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Mouse/NT4/VBoxPS2NT.cpp

    r62683 r63066  
    972972static VOID CtrlRetriesExceededDpc(PKDPC Dpc, PDEVICE_OBJECT pDevObj, PIRP Irp, PVOID pCtx)
    973973{
    974     NOREF(Dpc);
    975     NOREF(pCtx);
    976     PDEVEXT pDevExt = (PDEVEXT)pDevObj->DeviceExtension;
     974    RT_NOREF(Dpc, pCtx);
    977975
    978976    Irp->IoStatus.Status = STATUS_IO_TIMEOUT;
    979977
    980978    IoStartNextPacket(pDevObj, FALSE);
    981     IoCompleteRequest (Irp, IO_KEYBOARD_INCREMENT);
     979    IoCompleteRequest(Irp, IO_KEYBOARD_INCREMENT);
    982980}
    983981
     
    10911089static VOID CtrlTimeoutDpc(PKDPC Dpc, PDEVICE_OBJECT pDevObj, PVOID SystemContext1, PVOID SystemContext2)
    10921090{
     1091    RT_NOREF(Dpc, SystemContext1, SystemContext2);
    10931092    PDEVEXT pDevExt = (PDEVEXT)pDevObj->DeviceExtension;
    10941093
     
    15741573        {
    15751574            if (pDevExt->KeyboardEnableCount == 0)
     1575            {
    15761576                UCHAR scanCode = I8X_GET_DATA_BYTE(pDevExt->DevRegs[i8042Dat]);
     1577                NOREF(scanCode);
     1578            }
    15771579            return FALSE;
    15781580        }
     
    17161718                                                   &peripheralType, NULL,
    17171719                                                   KbdCallOut, pInit);
     1720        NOREF(status); /* how diligent of us */
    17181721
    17191722        if (pDevExt->HardwarePresent & KEYBOARD_HARDWARE_PRESENT)
     
    17471750                          PUNICODE_STRING KeyboardDeviceName, PUNICODE_STRING PointerDeviceName)
    17481751{
    1749     PDEVEXT pDevExt = &pInit->DevExt;
    17501752    NTSTATUS status = STATUS_SUCCESS;
    17511753    INTERFACE_TYPE interfaceType;
     
    17891791    BOOLEAN fConflict;
    17901792
    1791     UNICODE_STRING KbdNameFull;
    1792     UNICODE_STRING MouNameFull;
    1793     UNICODE_STRING KbdNameBase;
    1794     UNICODE_STRING MouNameBase;
    1795     UNICODE_STRING DevNameSuff;
    1796     UNICODE_STRING resourceDeviceClass;
    1797     UNICODE_STRING registryPath;
     1793    UNICODE_STRING KbdNameFull          = { 0, 0, NULL };
     1794    UNICODE_STRING MouNameFull          = { 0, 0, NULL };
     1795    UNICODE_STRING KbdNameBase          = { 0, 0, NULL };
     1796    UNICODE_STRING MouNameBase          = { 0, 0, NULL };
     1797    UNICODE_STRING DevNameSuff          = { 0, 0, NULL };
     1798    UNICODE_STRING resourceDeviceClass  = { 0, 0, NULL };
     1799    UNICODE_STRING registryPath         = { 0, 0, NULL };
    17981800
    17991801#define NAME_MAX 256
     
    18111813
    18121814    RtlZeroMemory(pInit, sizeof(INITEXT));
    1813     KbdNameFull.MaximumLength = 0;
    1814     KbdNameFull.Length = 0;
    1815     MouNameFull.MaximumLength = 0;
    1816     MouNameFull.Length = 0;
    1817     DevNameSuff.MaximumLength = 0;
    1818     DevNameSuff.Length = 0;
    1819     resourceDeviceClass.MaximumLength = 0;
    1820     resourceDeviceClass.Length = 0;
    1821     registryPath.MaximumLength = 0;
    18221815    RtlZeroMemory(keyboardBuffer, NAME_MAX * sizeof(WCHAR));
    18231816    KbdNameBase.Buffer = keyboardBuffer;
     
    29292922                           CONFIGURATION_TYPE uPrfType, ULONG uPrfNr, PKEY_VALUE_FULL_INFORMATION *pPrfInf)
    29302923{
     2924    RT_NOREF(PathName, pBusInf, uCtrlType, uCtrlNr, uPrfType, uPrfNr);
    29312925    UNICODE_STRING unicodeIdentifier;
    29322926    GetDevIdentifier(pPrfInf, &unicodeIdentifier);
     
    30813075                           CONFIGURATION_TYPE uPrfType, ULONG uPrfNr, PKEY_VALUE_FULL_INFORMATION *pPrfInf)
    30823076{
     3077    RT_NOREF(PathName, pBusInf, uCtrlType, uCtrlNr, uPrfType, uPrfNr);
    30833078    NTSTATUS status = STATUS_SUCCESS;
    30843079
  • trunk/src/VBox/Additions/WINNT/Mouse/NT5/VBoxMFInternal.cpp

    r62522 r63066  
    11/* $Id$ */
    2 
    32/** @file
    43 * VBox Mouse filter internal functions
     
    1716 */
    1817
     18#undef WIN9X_COMPAT_SPINLOCK
    1919#define WIN9X_COMPAT_SPINLOCK /* Avoid duplicate _KeInitializeSpinLock@4 error on x86. */
    2020#include <iprt/asm.h>
     
    7979    NTSTATUS Status;
    8080    PIRP pIrp;
    81     KIRQL Irql = KeGetCurrentIrql();
    82     Assert(Irql == PASSIVE_LEVEL);
     81    Assert(KeGetCurrentIrql() == PASSIVE_LEVEL);
    8382
    8483    pIrp = IoBuildDeviceIoControlRequest(uCtl, g_ctx.Gdc.pDo, NULL, 0, NULL, 0, TRUE, pEvent, pIoStatus);
     
    119118static DECLCALLBACK(void) vboxNewProtMouseEventCb(void *pvContext)
    120119{
     120    RT_NOREF(pvContext);
    121121    PVBOXMOUSE_DEVEXT pDevExt = (PVBOXMOUSE_DEVEXT)ASMAtomicUoReadPtr((void * volatile *)&g_ctx.pCurrentDevExt);
    122122    if (pDevExt)
Note: See TracChangeset for help on using the changeset viewer.

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