VirtualBox

Changeset 104604 in vbox for trunk/src/VBox/Devices/USB


Ignore:
Timestamp:
May 13, 2024 3:20:33 PM (7 months ago)
Author:
vboxsync
Message:

Devices/USB/DevOHCI.cpp: Fix parfait warning about unused chg variable which is only used in LOG_ENABLED builds, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/DevOHCI.cpp

    r104302 r104604  
    53035303    POHCICC pThisCC = PDMDEVINS_2_DATA_CC(pDevIns, POHCICC);
    53045304
     5305#ifdef LOG_ENABLED
    53055306    /* log */
    53065307    uint32_t old = pThis->RootHub.status;
    5307     uint32_t chg;
    53085308    if (val & ~0x80038003)
    53095309        Log2(("HcRhStatus_w: Unknown bits %#x are set!!!\n", val & ~0x80038003));
     
    53125312    if ( (val & OHCI_RHS_DRWE) && (val & OHCI_RHS_CRWE) )
    53135313        Log2(("HcRhStatus_w: Warning both CRWE and SRWE are set! (Clear/Set Remote Wakeup Enable)\n"));
    5314 
     5314#endif
    53155315
    53165316    /* write 1 to clear OCIC */
     
    53425342        pThis->RootHub.status &= ~OHCI_RHS_DRWE;
    53435343
    5344     chg = pThis->RootHub.status ^ old;
     5344#ifdef LOG_ENABLED
     5345    uint32_t chg = pThis->RootHub.status ^ old;
    53455346    Log2(("HcRhStatus_w(%#010x) => %sCGP=%d %sOCI=%d %sSRWE=%d %sSGP=%d %sOCIC=%d %sCRWE=%d\n",
    53465347          val,
     
    53515352          (chg >> 17) & 1 ? "*" : "", (val >> 17) & 1,
    53525353          (chg >> 31) & 1 ? "*" : "", (val >> 31) & 1));
     5354#endif
    53535355    RT_NOREF(pDevIns, iReg);
    53545356    return VINF_SUCCESS;
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