VirtualBox

Changeset 85328 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 14, 2020 9:54:04 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139308
Message:

FE/Qt: Clang 11 takes offence at unused variable UIMetric::m_iMaximumQueueSize. bugref:9790

Location:
trunk/src/VBox/Frontends/VirtualBox/src/monitor/performance
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/monitor/performance/UIPerformanceMonitor.cpp

    r85297 r85328  
    587587    , m_strUnit(strUnit)
    588588    , m_iMaximum(0)
     589#if 0 /* Unused according to Clang 11. */
    589590    , m_iMaximumQueueSize(iMaximumQueueSize) /** @todo r=bird: m_iMaximumQueueSize is not used anywhere that I can see. */
     591#endif
    590592    , m_fRequiresGuestAdditions(false)
    591593    , m_fIsInitialized(false)
    592594{
     595    RT_NOREF(iMaximumQueueSize); /* Unused according to Clang 11. */
    593596    m_iTotal[0] = 0;
    594597    m_iTotal[1] = 0;
     
    597600UIMetric::UIMetric()
    598601    : m_iMaximum(0)
     602#if 0 /* Unused according to Clang 11. */
    599603    , m_iMaximumQueueSize(0)
     604#endif
    600605    , m_fRequiresGuestAdditions(false)
    601606    , m_fIsInitialized(false)
  • trunk/src/VBox/Frontends/VirtualBox/src/monitor/performance/UIPerformanceMonitor.h

    r85297 r85328  
    8888      * we get from IMachineDebugger m_data values are computed as deltas of total values t - (t-1) */
    8989    quint64 m_iTotal[DATA_SERIES_SIZE];
     90#if 0 /* Unused according to Clang 11. */
    9091    int m_iMaximumQueueSize;
     92#endif
    9193    bool m_fRequiresGuestAdditions;
    9294    /** Used for metrices whose data is computed as total deltas. That is we receieve only total value and
Note: See TracChangeset for help on using the changeset viewer.

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