VirtualBox

Ignore:
Timestamp:
Nov 5, 2019 7:08:21 PM (5 years ago)
Author:
vboxsync
Message:

Main/Console+ConsoleVRDPServer+ApplianceExport+Host+Machine+USBDeviceFilters: fix missing RT_NOREF(...) if VBOX_WITH_USB is undefined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/HostImpl.cpp

    r81605 r81682  
    975975     * extended error info to indicate that USB is simply not available
    976976     * (w/o treating it as a failure), for example, as in OSE. */
    977     NOREF(aUSBDevices);
    978 # ifndef RT_OS_WINDOWS
    979     NOREF(aUSBDevices);
    980 # endif
     977    RT_NOREF(aUSBDevices);
    981978    ReturnComNotImplemented();
    982979#endif
     
    10321029     * extended error info to indicate that USB is simply not available
    10331030     * (w/o treating it as a failure), for example, as in OSE. */
    1034     NOREF(aUSBDeviceFilters);
    1035 # ifndef RT_OS_WINDOWS
    1036     NOREF(aUSBDeviceFilters);
    1037 # endif
     1031    RT_NOREF(aUSBDeviceFilters);
    10381032    ReturnComNotImplemented();
    10391033#endif
     
    15471541     * extended error info to indicate that USB is simply not available
    15481542     * (w/o treating it as a failure), for example, as in OSE. */
    1549     NOREF(aName);
    1550     NOREF(aFilter);
     1543    RT_NOREF(aName, aFilter);
    15511544    ReturnComNotImplemented();
    15521545#endif
     
    16081601     * extended error info to indicate that USB is simply not available
    16091602     * (w/o treating it as a failure), for example, as in OSE. */
    1610     NOREF(aPosition);
    1611     NOREF(aFilter);
     1603    RT_NOREF(aPosition, aFilter);
    16121604    ReturnComNotImplemented();
    16131605#endif
     
    16621654     * extended error info to indicate that USB is simply not available
    16631655     * (w/o treating it as a failure), for example, as in OSE. */
    1664     NOREF(aPosition);
     1656    RT_NOREF(aPosition);
    16651657    ReturnComNotImplemented();
    16661658#endif
     
    18511843
    18521844#else   /* !VBOX_WITH_USB */
    1853     NOREF(aName);
    1854     NOREF(aDevice);
     1845    RT_NOREF(aName, aDevice);
    18551846    return E_NOTIMPL;
    18561847#endif  /* !VBOX_WITH_USB */
     
    18861877
    18871878#else   /* !VBOX_WITH_USB */
    1888     NOREF(aId);
    1889     NOREF(aDevice);
     1879    RT_NOREF(aId, aDevice);
    18901880    return E_NOTIMPL;
    18911881#endif  /* !VBOX_WITH_USB */
     
    19291919    return m->pUSBProxyService->addUSBDeviceSource(aBackend, aId, aAddress, aPropertyNames, aPropertyValues);
    19301920#else
     1921    RT_NOREF(aBackend, aId, aAddress, aPropertyNames, aPropertyValues);
    19311922    ReturnComNotImplemented();
    19321923#endif
     
    19391930    return m->pUSBProxyService->removeUSBDeviceSource(aId);
    19401931#else
     1932    RT_NOREF(aId);
    19411933    ReturnComNotImplemented();
    19421934#endif
     
    19801972    rc = m->pUSBProxyService->i_loadSettings(data.llUSBDeviceSources);
    19811973#else
    1982     NOREF(data);
     1974    RT_NOREF(data);
    19831975#endif /* VBOX_WITH_USB */
    19841976    return rc;
     
    20092001    return m->pUSBProxyService->i_saveSettings(data.llUSBDeviceSources);
    20102002#else
    2011     NOREF(data);
     2003    RT_NOREF(data);
    20122004    return S_OK;
    20132005#endif /* VBOX_WITH_USB */
     
    23922384            }
    23932385#else
    2394     NOREF(list);
     2386    RT_NOREF(list);
    23952387    /* PORTME */
    23962388#endif
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