VirtualBox

Changeset 63011 in vbox for trunk/src


Ignore:
Timestamp:
Aug 4, 2016 9:08:23 PM (9 years ago)
Author:
vboxsync
Message:

lwip-new: warnings

Location:
trunk/src/VBox/Devices/Network/lwip-new
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/lwip-new/src/core/ipv6/ip6_frag.c

    r50023 r63011  
    449449  /* Adjust datagram length by adding preceding header lengths. */
    450450  unfrag_len = (u8_t *)p->payload - (u8_t *)ipr->iphdr0;
     451# ifndef VBOX
    451452  ipr->datagram_len += unfrag_len - IP6_HLEN + IP6_FRAG_HLEN;
     453# else
     454  LWIP_ASSERT("overflow", (s16_t)unfrag_len == (ssize_t)unfrag_len); /* s16_t because of pbuf_header call */
     455  ipr->datagram_len += (u16_t)(unfrag_len - IP6_HLEN + IP6_FRAG_HLEN);
     456# endif
    452457
    453458  /* Set payload length in ip header. */
     
    474479
    475480  /* Move pbuf back to IPv6 header. */
     481# ifndef VBOX
    476482  if (pbuf_header(p, unfrag_len) != 0) {
     483# else
     484  if (pbuf_header(p, (s16_t)unfrag_len) != 0) {
     485# endif
    477486    LWIP_ASSERT("ip6_reass: moving p->payload to ip6 header failed\n", 0);
    478487    goto nullreturn;
  • trunk/src/VBox/Devices/Network/lwip-new/src/core/netif.c

    r50185 r63011  
    888888netif_create_ip6_linklocal_address(struct netif * netif, u8_t from_mac_48bit)
    889889{
     890#ifndef VBOX
    890891  u8_t i, addr_index;
     892#else
     893  u8_t i;
     894#endif
    891895
    892896  /* Link-local prefix. */
  • trunk/src/VBox/Devices/Network/lwip-new/src/core/tcp_in.c

    r58592 r63011  
    502502  struct tcp_pcb *npcb;
    503503  err_t rc;
     504#ifdef VBOX
     505  (void)syn;
     506#endif
    504507
    505508  if (flags & TCP_RST) {
  • trunk/src/VBox/Devices/Network/lwip-new/vbox/sys_arch.c

    r62499 r63011  
    179179    int rc;
    180180    struct sys_mbox *mbox = NULL;
     181    RT_NOREF(size); /** @todo safe to ignore this? */
    181182
    182183    if (pvMbox == NULL)
     
    326327    uint64_t tsStart, tsEnd;
    327328    struct sys_mbox *mbox = NULL;
     329
    328330    if (!pvMbox || !*pvMbox) return 0;
    329     AssertReturn(pvMbox && *pvMbox, ERR_ARG);
    330331    mbox = (struct sys_mbox*)*pvMbox;
    331332
     
    493494 * to make lwip thread main function compatible with IPRT thread main function.
    494495 */
    495 static DECLCALLBACK(int) sys_thread_adapter(RTTHREAD ThreadSelf, void *pvUser)
     496static DECLCALLBACK(int) sys_thread_adapter(RTTHREAD hThreadSelf, void *pvUser)
    496497{
    497498    THREADLOCALSTORAGE *tls = (THREADLOCALSTORAGE *)pvUser;
     499    RT_NOREF(hThreadSelf);
     500
    498501    tls->thread(tls->arg);
    499     return 0;
     502
     503    return VINF_SUCCESS;
    500504}
    501505
     
    511515    unsigned id;
    512516    RTTHREAD tid;
     517
     518    RT_NOREF(prio, stacksize, name);
    513519
    514520#if SYS_LIGHTWEIGHT_PROT
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