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/pjlib/src/pjlib-test/pool.c

    r4537 r5170  
    191191    /* Drain the pool until there's nothing left. */ 
    192192    while (freesize > 0) { 
    193         int size; 
     193        int size2; 
    194194 
    195195        if (freesize > 255) 
    196             size = ((pj_rand() & 0x000000FF) + PJ_POOL_ALIGNMENT) &  
     196            size2 = ((pj_rand() & 0x000000FF) + PJ_POOL_ALIGNMENT) &  
    197197                   ~(PJ_POOL_ALIGNMENT - 1); 
    198198        else 
    199             size = (int)freesize; 
    200  
    201         p = pj_pool_alloc(pool, size); 
     199            size2 = (int)freesize; 
     200 
     201        p = pj_pool_alloc(pool, size2); 
    202202        if (!p) { 
    203203            status=-20; goto on_error; 
    204204        } 
    205205 
    206         freesize -= size; 
     206        freesize -= size2; 
    207207    } 
    208208 
Note: See TracChangeset for help on using the changeset viewer.