VirtualBox

Changeset 17911 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Mar 16, 2009 10:30:55 AM (16 years ago)
Author:
vboxsync
Message:

#3686: “Main: fix unused var warnings”

  • Garbage collect; use NOREF(); comment out; (depending on situation)
Location:
trunk/src/VBox/Main/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/MachineImpl.h

    r17755 r17911  
    634634    virtual HRESULT onDVDDriveChange() { return S_OK; }
    635635    virtual HRESULT onFloppyDriveChange() { return S_OK; }
    636     virtual HRESULT onNetworkAdapterChange(INetworkAdapter *networkAdapter) { return S_OK; }
    637     virtual HRESULT onSerialPortChange(ISerialPort *serialPort) { return S_OK; }
    638     virtual HRESULT onParallelPortChange(IParallelPort *ParallelPort) { return S_OK; }
     636    virtual HRESULT onNetworkAdapterChange(INetworkAdapter * /* networkAdapter */) { return S_OK; }
     637    virtual HRESULT onSerialPortChange(ISerialPort * /* serialPort */) { return S_OK; }
     638    virtual HRESULT onParallelPortChange(IParallelPort * /* parallelPort */) { return S_OK; }
    639639    virtual HRESULT onVRDPServerChange() { return S_OK; }
    640640    virtual HRESULT onUSBControllerChange() { return S_OK; }
  • trunk/src/VBox/Main/include/MediumImpl.h

    r16867 r17911  
    159159     * within this object's AutoWriteLock.
    160160     */
    161     virtual HRESULT canAttach (const Guid &aMachineId,
    162                                const Guid &aSnapshotId)
     161    virtual HRESULT canAttach (const Guid & /* aMachineId */,
     162                               const Guid & /* aSnapshotId */)
    163163    { return S_OK; }
    164164
  • trunk/src/VBox/Main/include/Performance.h

    r15051 r17911  
    143143    public:
    144144        virtual ~CollectorHAL() { };
    145         virtual int preCollect(const CollectorHints& hints) { return VINF_SUCCESS; }
     145        virtual int preCollect(const CollectorHints& /* hints */) { return VINF_SUCCESS; }
    146146        virtual int getHostCpuLoad(ULONG *user, ULONG *kernel, ULONG *idle);
    147147        virtual int getHostCpuMHz(ULONG *mhz);
     
    233233
    234234        void init(ULONG period, ULONG length);
    235         void preCollect(CollectorHints& hints) {}
     235        void preCollect(CollectorHints& /* hints */) {}
    236236        void collect();
    237237        const char *getUnit() { return "MHz"; };
  • trunk/src/VBox/Main/include/VirtualBoxErrorInfoImpl.h

    r15051 r17911  
    8484    //        is available in this class.
    8585    static const char *tr (const char *a) { return a; }
    86     static HRESULT setError (HRESULT rc, const char *a,
    87                              const char *b, void *c) { return rc; }
     86    static HRESULT setError (HRESULT rc,
     87                             const char * /* a */,
     88                             const char * /* b */,
     89                             void *       /* c */) { return rc; }
    8890
    8991    HRESULT mResultCode;
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