VirtualBox

Ignore:
Timestamp:
Oct 25, 2011 2:44:01 AM (13 years ago)
Author:
vboxsync
Message:

NAT: warnings.

Location:
trunk/src/VBox/Devices/Network/slirp/bsd/kern
Files:
2 edited

Legend:

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

    r36608 r39101  
    131131SYSINIT(tunable_mbinit, SI_SUB_TUNABLES, SI_ORDER_MIDDLE, tunable_mbinit, NULL);
    132132
     133#ifndef VBOX
    133134/* XXX: These should be tuneables. Can't change UMA limits on the fly. */
    134135static int
     
    222223 * Zones from which we allocate.
    223224 */
    224 #ifndef VBOX
    225225uma_zone_t      zone_mbuf;
    226226uma_zone_t      zone_clust;
     
    470470        int flags;
    471471        short type;
     472#ifdef VBOX
     473    NOREF(pData);
     474#endif
    472475
    473476#ifdef INVARIANTS
    474477        trash_ctor(mem, size, arg, how);
     478#elif defined(VBOX)
     479    NOREF(size);
     480    NOREF(how);
    475481#endif
    476482        m = (struct mbuf *)mem;
     
    524530        struct mbuf *m;
    525531        unsigned long flags;
     532#ifdef VBOX
     533    NOREF(pData);
     534#endif
    526535
    527536        m = (struct mbuf *)mem;
     
    534543#ifdef INVARIANTS
    535544        trash_dtor(mem, size, arg);
     545#elif defined(VBOX)
     546    NOREF(size);
     547    NOREF(arg);
    536548#endif
    537549}
     
    563575#ifdef INVARIANTS
    564576        trash_dtor(m->m_ext.ext_buf, MCLBYTES, arg);
     577#elif defined(VBOX)
     578    NOREF(size);
     579    NOREF(arg);
    565580#endif
    566581        /*
     
    593608        int type;
    594609        uma_zone_t zone;
     610#ifdef VBOX
     611    NOREF(how);
     612#endif
    595613
    596614#ifdef INVARIANTS
    597615        trash_ctor(mem, size, arg, how);
     616#elif defined(VBOX)
     617    NOREF(how);
    598618#endif
    599619        switch (size) {
     
    657677
    658678        trash_dtor(mem, size, arg);
     679#elif defined(VBOX)
     680    NOREF(pData);
     681    NOREF(mem);
     682    NOREF(size);
     683    NOREF(arg);
    659684#endif
    660685}
     
    680705#ifdef INVARIANTS
    681706        trash_init(m->m_ext.ext_buf, MCLBYTES, how);
     707#elif defined(VBOX)
     708    NOREF(size);
    682709#endif
    683710        return (0);
     
    704731#ifdef INVARIANTS
    705732        trash_dtor(mem, size, NULL);
     733#elif defined(VBOX)
     734    NOREF(size);
    706735#endif
    707736}
     
    724753        int flags;
    725754        short type;
     755#ifdef VBOX
     756    NOREF(pData);
     757    NOREF(size);
     758#endif
    726759
    727760        m = (struct mbuf *)mem;
     
    732765#ifdef INVARIANTS
    733766        trash_ctor(m->m_ext.ext_buf, MCLBYTES, arg, how);
     767#elif defined(VBOX)
     768    NOREF(how);
    734769#endif
    735770        m->m_next = NULL;
     
    782817                        if (pr->pr_drain != NULL)
    783818                                (*pr->pr_drain)();
    784 #endif
    785 }
     819#else
     820    NOREF(junk);
     821#endif
     822}
  • trunk/src/VBox/Devices/Network/slirp/bsd/kern/uipc_mbuf2.c

    r28188 r39101  
    406406        t = malloc(len + sizeof(struct m_tag), M_PACKET_TAGS, fWait);
    407407#else
     408        NOREF(fWait);
    408409        t = RTMemAllocZ(len + sizeof(struct m_tag));
    409410#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