VirtualBox

Changeset 29385 in vbox


Ignore:
Timestamp:
May 11, 2010 6:05:44 PM (14 years ago)
Author:
vboxsync
Message:

Main: cleaned up some pedantic warnings.

Location:
trunk/src/VBox/Main
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleVRDPServer.cpp

    r29312 r29385  
    22302230                                                                          \
    22312231        /* todo: Not sure if a AutoReadLock would be sufficient. */       \
    2232         AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);                                        \
     2232        AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);                  \
    22332233                                                                          \
    22342234        uint32_t value;                                                   \
     
    22412241                                                                          \
    22422242        return S_OK;                                                      \
    2243     }
     2243    }                                                                     \
     2244    extern void IMPL_GETTER_BOOL_DUMMY(void)
    22442245
    22452246#define IMPL_GETTER_SCALAR(_aType, _aName, _aIndex)                       \
     
    22532254                                                                          \
    22542255        /* todo: Not sure if a AutoReadLock would be sufficient. */       \
    2255         AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);                                        \
     2256        AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);                  \
    22562257                                                                          \
    22572258        _aType value;                                                     \
     
    22642265                                                                          \
    22652266        return S_OK;                                                      \
    2266     }
     2267    }                                                                     \
     2268    extern void IMPL_GETTER_SCALAR_DUMMY(void)
    22672269
    22682270#define IMPL_GETTER_BSTR(_aType, _aName, _aIndex)                         \
     
    22762278                                                                          \
    22772279        /* todo: Not sure if a AutoReadLock would be sufficient. */       \
    2278         AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);                                        \
     2280        AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);                  \
    22792281                                                                          \
    22802282        uint32_t cbOut = 0;                                               \
     
    23102312                                                                          \
    23112313        return S_OK;                                                      \
    2312     }
     2314    }                                                                     \
     2315    extern void IMPL_GETTER_BSTR_DUMMY(void)
    23132316
    23142317IMPL_GETTER_BOOL   (BOOL,    Active,             VRDP_QI_ACTIVE);
     
    23302333#undef IMPL_GETTER_BSTR
    23312334#undef IMPL_GETTER_SCALAR
     2335#undef IMPL_GETTER_BOOL
    23322336/* vi: set tabstop=4 shiftwidth=4 expandtab: */
  • trunk/src/VBox/Main/HostImpl.cpp

    r29250 r29385  
    23172317
    23182318#ifdef VBOX_WITH_RESOURCE_USAGE_API
     2319
    23192320void Host::registerMetrics(PerformanceCollector *aCollector)
    23202321{
     
    24352436    aCollector->registerMetric(new pm::Metric(ramUsage, ramVMMBallooned,
    24362437                                              new pm::AggregateMax()));
    2437 };
     2438}
    24382439
    24392440void Host::unregisterMetrics (PerformanceCollector *aCollector)
     
    24412442    aCollector->unregisterMetricsFor(this);
    24422443    aCollector->unregisterBaseMetricsFor(this);
    2443 };
     2444}
     2445
    24442446#endif /* VBOX_WITH_RESOURCE_USAGE_API */
    24452447
  • trunk/src/VBox/Main/MachineImpl.cpp

    r29363 r29385  
    91379137
    91389138#ifdef VBOX_WITH_RESOURCE_USAGE_API
     9139
    91399140void Machine::registerMetrics(PerformanceCollector *aCollector, Machine *aMachine, RTPROCESS pid)
    91409141{
     
    92459246    aCollector->registerMetric(new pm::Metric(guestCpuMem, guestPagedTotal, new pm::AggregateMin()));
    92469247    aCollector->registerMetric(new pm::Metric(guestCpuMem, guestPagedTotal, new pm::AggregateMax()));
    9247 };
     9248}
    92489249
    92499250void Machine::unregisterMetrics(PerformanceCollector *aCollector, Machine *aMachine)
     
    92549255    if (mGuestHAL)
    92559256        delete mGuestHAL;
    9256 };
     9257}
     9258
    92579259#endif /* VBOX_WITH_RESOURCE_USAGE_API */
    92589260
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r29363 r29385  
    634634        iLedSas     = iLedScsi + cLedScsi,
    635635        cLedSas     = 8,
    636         cLedStorage = cLedFloppy + cLedIde + cLedSata + cLedScsi + cLedSas,
     636        cLedStorage = cLedFloppy + cLedIde + cLedSata + cLedScsi + cLedSas
    637637    };
    638638    DeviceType_T maStorageDevType[cLedStorage];
  • trunk/src/VBox/Main/include/MachineImpl.h

    r29363 r29385  
    11/* $Id$ */
    2 
    32/** @file
    4  *
    53 * VirtualBox COM class implementation
    64 */
     
    744742        SaveSTS_CurStateModified = 0x20,
    745743        SaveSTS_StateFilePath = 0x40,
    746         SaveSTS_StateTimeStamp = 0x80,
     744        SaveSTS_StateTimeStamp = 0x80
    747745    };
    748746
  • trunk/src/VBox/Main/include/VirtualBoxBase.h

    r28800 r29385  
    427427 */
    428428#define DEFINE_EMPTY_CTOR_DTOR(cls) \
    429     cls::cls () {}; cls::~cls () {};
     429    cls::cls()  { /*empty*/ } \
     430    cls::~cls() { /*empty*/ }
    430431
    431432////////////////////////////////////////////////////////////////////////////////
  • trunk/src/VBox/Main/xml/SchemaDefs.xsl

    r28800 r29385  
    102102  <xsl:apply-templates select="xsd:schema" mode="declare.enum"/>
    103103
    104 <xsl:text>    };
     104<xsl:text>        DummyTerminator
     105    };
    105106</xsl:text>
    106107
     
    109110<xsl:text>}
    110111
    111 #endif // ____H_SCHEMADEFS
     112#endif // !____H_SCHEMADEFS
    112113</xsl:text>
    113114</xsl:template>
  • trunk/src/VBox/Main/xml/Settings.cpp

    r29353 r29385  
    16331633    ulIoCacheSize    = 5;
    16341634    ulIoBandwidthMax = 0;
    1635 };
     1635}
    16361636
    16371637////////////////////////////////////////////////////////////////////////////////
  • trunk/src/VBox/Main/xpcom/server.cpp

    r28800 r29385  
    200200    /* Delay before shutting down the VirtualBox server after the last
    201201     * VirtualBox instance is released, in ms */
    202     VBoxSVC_ShutdownDelay = 5000,
     202    VBoxSVC_ShutdownDelay = 5000
    203203};
    204204
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