Ignore:
Timestamp:
Aug 25, 2015 8:45:46 AM (9 years ago)
Author:
nanang
Message:

Re #1881: Fixed compile warnings on VS2015 about declaration hides previous declaration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-simple/publishc.c

    r4530 r5170  
    435435    /* Add user headers */ 
    436436    if (!pj_list_empty(&pubc->usr_hdr)) { 
    437         const pjsip_hdr *hdr; 
    438  
    439         hdr = pubc->usr_hdr.next; 
    440         while (hdr != &pubc->usr_hdr) { 
     437        const pjsip_hdr *uhdr; 
     438 
     439        uhdr = pubc->usr_hdr.next; 
     440        while (uhdr != &pubc->usr_hdr) { 
    441441            pjsip_hdr *new_hdr = (pjsip_hdr*) 
    442                                  pjsip_hdr_shallow_clone(tdata->pool, hdr); 
     442                                 pjsip_hdr_shallow_clone(tdata->pool, uhdr); 
    443443            pjsip_msg_add_hdr(tdata->msg, new_hdr); 
    444             hdr = hdr->next; 
     444            uhdr = uhdr->next; 
    445445        } 
    446446    } 
Note: See TracChangeset for help on using the changeset viewer.