VirtualBox

Changeset 17929 in vbox


Ignore:
Timestamp:
Mar 16, 2009 1:09:36 PM (16 years ago)
Author:
vboxsync
Message:

Main: enabled -Wunused; fixed some warnings

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

Legend:

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

    r17913 r17929  
    31993199                                                      ComSafeArrayIn(IN_BSTR, argExtraConfigValues))
    32003200{
     3201    NOREF(aEnabledSize);
     3202
     3203    CheckComArgSafeArrayNotNull(aEnabled);
    32013204    CheckComArgSafeArrayNotNull(argVboxValues);
    32023205    CheckComArgSafeArrayNotNull(argExtraConfigValues);
     
    34923495                                   strVbox);
    34933496            }
    3494             else 
     3497            else
    34953498                throw rc;
    34963499        }
  • trunk/src/VBox/Main/Makefile.kmk

    r17915 r17929  
    199199        $(if $(VBOX_WITH_DBUS),VBOX_WITH_DBUS,) \
    200200        $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
     201
     202VBoxSVC_CXXFLAGS = $(filter-out -Wno-unused,$(TEMPLATE_VBOXMAINEXE_CXXFLAGS))
    201203
    202204ifdef VBOX_WITH_USB
  • trunk/src/VBox/Main/VirtualBoxImpl.cpp

    r17913 r17929  
    717717VirtualBox::COMGETTER(SharedFolders) (ComSafeArrayOut (ISharedFolder *, aSharedFolders))
    718718{
     719    NOREF(aSharedFoldersSize);
     720
    719721    CheckComArgOutSafeArrayPointerValid(aSharedFolders);
    720722
  • trunk/src/VBox/Main/generic/NetIf-generic.cpp

    r17835 r17929  
    7878}
    7979
    80 int NetIfEnableStaticIpConfig(VirtualBox *vBox, HostNetworkInterface * pIf, ULONG ip, ULONG mask)
     80int NetIfEnableStaticIpConfig(VirtualBox * /* vBox */, HostNetworkInterface * pIf, ULONG ip, ULONG mask)
    8181{
    8282    char szAddress[16]; /* 4*3 + 3*1 + 1 */
     
    9191}
    9292
    93 int NetIfEnableStaticIpConfigV6(VirtualBox *vBox, HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength)
     93int NetIfEnableStaticIpConfigV6(VirtualBox * /* vBox */, HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength)
    9494{
    9595    char szAddress[5*8 + 1 + 5 + 1];
     
    9999}
    100100
    101 int NetIfEnableDynamicIpConfig(VirtualBox *vBox, HostNetworkInterface * pIf)
     101int NetIfEnableDynamicIpConfig(VirtualBox * /* vBox */, HostNetworkInterface * /* pIf */)
    102102{
    103103    return VERR_NOT_IMPLEMENTED;
    104104}
    105105
    106 int NetIfCreateHostOnlyNetworkInterface (VirtualBox *pVbox, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress)
     106int NetIfCreateHostOnlyNetworkInterface (VirtualBox * /* pVbox */, IHostNetworkInterface ** /* aHostNetworkInterface */, IProgress ** /* aProgress */)
    107107{
    108108    return VERR_NOT_IMPLEMENTED;
    109109}
    110110
    111 int NetIfRemoveHostOnlyNetworkInterface (VirtualBox *pVbox, IN_GUID aId, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress)
     111int NetIfRemoveHostOnlyNetworkInterface (VirtualBox * /* pVbox */, IN_GUID /* aId */, IHostNetworkInterface ** /* aHostNetworkInterface */, IProgress ** /* aProgress */)
    112112{
    113113    return VERR_NOT_IMPLEMENTED;
    114114}
    115115
    116 int NetIfGetConfig(HostNetworkInterface * pIf, NETIFINFO *)
     116int NetIfGetConfig(HostNetworkInterface * /* pIf */, NETIFINFO *)
    117117{
    118118    return VERR_NOT_IMPLEMENTED;
    119119}
    120120
    121 int NetIfDhcpRediscover(VirtualBox *pVbox, HostNetworkInterface * pIf)
     121int NetIfDhcpRediscover(VirtualBox * /* pVbox */, HostNetworkInterface * /* pIf */)
    122122{
    123123    return VERR_NOT_IMPLEMENTED;
  • trunk/src/VBox/Main/linux/HostHardwareLinux.cpp

    r16543 r17929  
    9090                                     const char *pszKey, const char *pszValue,
    9191                                     RTMemAutoPtr <DBusMessage, VBoxDBusMessageUnref> *pMessage);
     92/*
    9293static int halFindDeviceStringMatchVector (DBusConnection *pConnection,
    9394                                           const char *pszKey,
    9495                                           const char *pszValue,
    9596                                           std::vector<std::string> *pMatches);
     97*/
    9698static int halGetPropertyStrings (DBusConnection *pConnection,
    9799                                  const char *pszUdi, size_t cKeys,
    98100                                  const char **papszKeys, char **papszValues,
    99101                                  RTMemAutoPtr <DBusMessage, VBoxDBusMessageUnref> *pMessage);
     102/*
    100103static int halGetPropertyStringsVector (DBusConnection *pConnection,
    101104                                        const char *pszUdi, size_t cProps,
     
    103106                                        std::vector<std::string> *pMatches,
    104107                                        bool *pfMatches, bool *pfSuccess);
     108*/
    105109static int getDriveInfoFromHal(DriveInfoList *pList, bool isDVD,
    106110                               bool *pfSuccess);
     
    632636    if (halSuccess)
    633637    {
    634         dbus_bus_add_match (dbusConnection.get(), 
     638        dbus_bus_add_match (dbusConnection.get(),
    635639                            "type='signal',"
    636640                            "interface='org.freedesktop.Hal.Manager',"
     
    680684    if (halSuccess)
    681685    {
    682         dbus_bus_add_match (dbusConnection.get(), 
     686        dbus_bus_add_match (dbusConnection.get(),
    683687                            "type='signal',"
    684688                            "interface='org.freedesktop.Hal.Manager',"
     
    708712    autoDBusError dbusError;
    709713
    710     dbus_bus_remove_match (pConnection, 
     714    dbus_bus_remove_match (pConnection,
    711715                           "type='signal',"
    712716                           "interface='org.freedesktop.Hal.Manager',"
     
    730734    autoDBusError dbusError;
    731735
    732     dbus_bus_remove_match (pConnection, 
     736    dbus_bus_remove_match (pConnection,
    733737                           "type='signal',"
    734738                           "interface='org.freedesktop.Hal.Manager',"
     
    925929
    926930    RTMemAutoPtr <DBusMessage, VBoxDBusMessageUnref> message, reply;
    927     DBusMessageIter iterGet, iterProps, iterKey, iterValue;
     931    DBusMessageIter iterGet, iterProps;
    928932
    929933    /* Initialise the return array to NULLs */
     
    12021206            USBDeviceInfo info (pszDevice, pszSysfsPath);
    12031207            bool ifaceSuccess = true;  /* If we can't get the interfaces, just
    1204                                         * skip this one device. */           
     1208                                        * skip this one device. */
    12051209            rc = getUSBInterfacesFromHal (&info.mInterfaces, pszUdi, &ifaceSuccess);
    12061210            if (RT_SUCCESS(rc) && halSuccess && ifaceSuccess)
     
    12871291            USBDeviceInfo info (pszDevice, pszSysfsPath);
    12881292            bool ifaceSuccess = false;  /* If we can't get the interfaces, just
    1289                                          * skip this one device. */           
     1293                                         * skip this one device. */
    12901294            rc = getUSBInterfacesFromHal (&info.mInterfaces, pszSysfsPath,
    12911295                                          &ifaceSuccess);
     
    14111415 */
    14121416/* static */
    1413 DBusHandlerResult dbusFilterFunction (DBusConnection *pConnection,
     1417DBusHandlerResult dbusFilterFunction (DBusConnection * /* pConnection */,
    14141418                                      DBusMessage *pMessage, void *pvUser)
    14151419{
  • trunk/src/VBox/Main/xpcom/server.cpp

    r17865 r17929  
    774774};
    775775
    776 static void signal_handler (int sig)
     776static void signal_handler (int /* sig */)
    777777{
    778778    if (gEventQ && gKeepRunning)
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