VirtualBox

Changeset 63217 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 9, 2016 3:12:08 PM (8 years ago)
Author:
vboxsync
Message:

Devices: warnings (gcc)

Location:
trunk/src/VBox/Devices
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/bsd/kern/kern_mbuf.c

    r63015 r63217  
    256256#endif
    257257
    258 static void     mb_reclaim(void *);
     258/*static void   mb_reclaim(void *); - unused */
    259259#ifndef VBOX
    260260static void     mbuf_init(void *);
     
    796796}
    797797
     798#if 0 /* unused */
    798799/*
    799800 * This is the protocol drain routine.
     
    821822#endif
    822823}
     824#endif /* unused */
  • trunk/src/VBox/Devices/Network/slirp/hostres.c

    r63014 r63217  
    146146static void strnlabels(char *namebuf, size_t nbuflen, const uint8_t *msg, size_t off);
    147147
    148 static void LogLabelsTree(const char *before, struct label *l, const char *after);
     148/*static void LogLabelsTree(const char *before, struct label *l, const char *after); - unused */
    149149static void free_labels(struct label *root);
    150150
     
    13051305
    13061306
     1307#if 0 /* unused */
    13071308static void
    13081309LogLabelsTree(const char *before, struct label *l, const char *after)
     
    13491350        LogDbg(("%s", after));
    13501351}
     1352#endif /* unused */
    13511353
    13521354
  • trunk/src/VBox/Devices/Network/slirp/libalias/alias.c

    r63014 r63217  
    162162    uint8_t *c = p;
    163163
    164 #ifdef RT_LITTLE_ENDIAN //BYTE_ORDER == LITTLE_ENDIAN
     164#ifdef RT_LITTLE_ENDIAN /*BYTE_ORDER == LITTLE_ENDIAN*/
    165165    uint16_t s1 = ((uint16_t)c[1] << 8) + (uint16_t)c[0];
    166166    uint16_t s2 = ((uint16_t)c[3] << 8) + (uint16_t)c[2];
  • trunk/src/VBox/Devices/Network/slirp/resolv_conf_parser.c

    r62463 r63217  
    111111    size_t cbSearchBuf;
    112112    uint32_t flags;
     113#ifdef RCP_ACCEPT_PORT /* OS X extention */
    113114    uint32_t default_port = RTNETADDR_PORT_NA;
     115#endif
    114116    unsigned i;
    115117    int rc;
  • trunk/src/VBox/Devices/Network/slirp/slirp_dns.c

    r63012 r63217  
    3333static int get_dns_addr_domain(PNATState pData)
    3434{
    35     //ULONG flags = GAA_FLAG_INCLUDE_PREFIX; /*GAA_FLAG_INCLUDE_ALL_INTERFACES;*/ /* all interfaces registered in NDIS */
     35    /*ULONG flags = GAA_FLAG_INCLUDE_PREFIX;*/ /*GAA_FLAG_INCLUDE_ALL_INTERFACES;*/ /* all interfaces registered in NDIS */
    3636    PIP_ADAPTER_ADDRESSES pAdapterAddr = NULL;
    3737    PIP_ADAPTER_ADDRESSES pAddr = NULL;
  • trunk/src/VBox/Devices/Storage/DrvSCSIHost.cpp

    r62956 r63217  
    362362static DECLCALLBACK(int) drvscsihostAsyncIOLoopWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread)
    363363{
    364     int rc;
     364    RT_NOREF(pThread);
    365365    PDRVSCSIHOST pThis = PDMINS_2_DATA(pDrvIns, PDRVSCSIHOST);
    366366    PRTREQ pReq;
     
    368368    AssertReturn(pThis->hQueueRequests != NIL_RTREQQUEUE, VERR_INVALID_STATE);
    369369
    370     rc = RTReqQueueCall(pThis->hQueueRequests, &pReq, 10000 /* 10 sec. */, (PFNRT)drvscsihostAsyncIOLoopWakeupFunc, 0);
     370    int rc = RTReqQueueCall(pThis->hQueueRequests, &pReq, 10000 /* 10 sec. */, (PFNRT)drvscsihostAsyncIOLoopWakeupFunc, 0);
    371371    AssertMsgRC(rc, ("Inserting request into queue failed rc=%Rrc\n", rc));
    372372
     
    446446static DECLCALLBACK(int) drvscsihostConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
    447447{
     448    RT_NOREF(fFlags);
     449    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    448450    PDRVSCSIHOST pThis = PDMINS_2_DATA(pDrvIns, PDRVSCSIHOST);
    449451    LogFlowFunc(("pDrvIns=%#p pCfg=%#p\n", pDrvIns, pCfg));
    450     PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    451452
    452453    /*
  • trunk/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp

    r62956 r63217  
    416416static int usbProxyLinuxFindActiveConfigUsbfs(PUSBPROXYDEV pProxyDev, const char *pszDevNode, int *piFirstCfg)
    417417{
     418    RT_NOREF(pProxyDev);
     419
    418420    /*
    419421     * Set return defaults.
     
    12781280static int usbProxyLinuxSubmitURB(PUSBPROXYDEV pProxyDev, PUSBPROXYURBLNX pCur, PVUSBURB pUrb, bool *pfUnplugged)
    12791281{
    1280     int rc = VINF_SUCCESS;
    12811282    PUSBPROXYDEVLNX pDevLnx = USBPROXYDEV_2_DATA(pProxyDev, PUSBPROXYDEVLNX);
    12821283    unsigned        cTries = 0;
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