Ignore:
Timestamp:
Feb 4, 2014 10:13:56 AM (10 years ago)
Author:
bennylp
Message:

Misc (re #1630): Fixing warnings about variable set but not used with recent gcc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/test/uri_test.c

    r4641 r4728  
    11/* $Id$ */ 
    2 /*  
     2/* 
    33 * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 
    44 * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> 
     
    1616 * You should have received a copy of the GNU General Public License 
    1717 * along with this program; if not, write to the Free Software 
    18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
     18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
    1919 */ 
    2020#include "test.h" 
     
    6868static pjsip_uri *create_uri16( pj_pool_t *pool ); 
    6969static pjsip_uri *create_uri17( pj_pool_t *pool ); 
    70 static pjsip_uri *create_uri18( pj_pool_t *pool ); 
    7170static pjsip_uri *create_uri25( pj_pool_t *pool ); 
    7271static pjsip_uri *create_uri26( pj_pool_t *pool ); 
     
    9796    const char      *printed; 
    9897    pj_size_t        len; 
    99 } uri_test_array[] =  
     98} uri_test_array[] = 
    10099{ 
    101100    { 
     
    184183    { 
    185184        /* Excercise strange character sets allowed in display, user, password, 
    186          * host, and port.  
     185         * host, and port. 
    187186         */ 
    188187        PJ_SUCCESS, 
     
    198197    }, 
    199198    { 
    200         /* Another excercise to the allowed character sets to the username  
     199        /* Another excercise to the allowed character sets to the username 
    201200         * and password. 
    202201         */ 
     
    439438{ 
    440439    /* "sip:localhost;pickup=hurry;user=phone;message=I%20am%20sorry" 
    441        "?Subject=Hello%20There&Server=SIP%20Server"  
     440       "?Subject=Hello%20There&Server=SIP%20Server" 
    442441     */ 
    443442    pjsip_sip_uri *url = pjsip_sip_uri_create(pool, 0); 
     
    659658 
    660659    uri->number = pj_str("(44).1234-*#+Deaf"); 
    661     return (pjsip_uri*)uri;     
     660    return (pjsip_uri*)uri; 
    662661} 
    663662 
     
    669668    uri->number = pj_str("+1"); 
    670669    uri->isub_param = pj_str("/:@&$,-_.!~*'()[]/:&$aA1!+="); 
    671     return (pjsip_uri*)uri;     
     670    return (pjsip_uri*)uri; 
    672671} 
    673672 
     
    679678    uri->number = pj_str("+1"); 
    680679    uri->ext_param = pj_str("+123"); 
    681     return (pjsip_uri*)uri;     
     680    return (pjsip_uri*)uri; 
    682681} 
    683682 
     
    689688    uri->number = pj_str("911"); 
    690689    uri->context = pj_str("+1-911"); 
    691     return (pjsip_uri*)uri;     
     690    return (pjsip_uri*)uri; 
    692691} 
    693692 
     
    699698    uri->number = pj_str("911"); 
    700699    uri->context = pj_str("EMERGENCY.EXAMPLE.COM"); 
    701     return (pjsip_uri*)uri;     
     700    return (pjsip_uri*)uri; 
    702701} 
    703702 
     
    709708 
    710709    uri->number = pj_str("911"); 
    711      
     710 
    712711    p = PJ_POOL_ALLOC_T(pool, pjsip_param); 
    713712    p->name = p->value = pj_str("p1"); 
    714713    pj_list_insert_before(&uri->other_param, p); 
    715714 
    716     return (pjsip_uri*)uri;     
     715    return (pjsip_uri*)uri; 
    717716} 
    718717 
     
    750749    url = pjsip_sip_uri_create(pool, 0); 
    751750    url->host = pj_str("localhost"); 
    752      
     751 
    753752    name->uri = (pjsip_uri*)url; 
    754753 
     
    768767    url = pjsip_sip_uri_create(pool, 0); 
    769768    url->host = pj_str("localhost"); 
    770      
     769 
    771770    name->uri = (pjsip_uri*)url; 
    772771 
     
    1000999    avg_parse = 1000000 / avg_parse; 
    10011000 
    1002     PJ_LOG(3,(THIS_FILE,  
    1003               "    %u.%u MB of urls parsed in %d.%03ds (avg=%d urls/sec)",  
     1001    PJ_LOG(3,(THIS_FILE, 
     1002              "    %u.%u MB of urls parsed in %d.%03ds (avg=%d urls/sec)", 
    10041003              (unsigned)(var.parse_len/1000000), (unsigned)kbytes, 
    10051004              elapsed.sec, elapsed.msec, 
     
    10191018    avg_print = 1000000 / avg_print; 
    10201019 
    1021     PJ_LOG(3,(THIS_FILE,  
    1022               "    %u.%u MB of urls printed in %d.%03ds (avg=%d urls/sec)",  
     1020    PJ_LOG(3,(THIS_FILE, 
     1021              "    %u.%u MB of urls printed in %d.%03ds (avg=%d urls/sec)", 
    10231022              (unsigned)(var.print_len/1000000), (unsigned)kbytes, 
    10241023              elapsed.sec, elapsed.msec, 
     
    10381037    avg_cmp = 1000000 / avg_cmp; 
    10391038 
    1040     PJ_LOG(3,(THIS_FILE,  
    1041               "    %u.%u MB of urls compared in %d.%03ds (avg=%d urls/sec)",  
     1039    PJ_LOG(3,(THIS_FILE, 
     1040              "    %u.%u MB of urls compared in %d.%03ds (avg=%d urls/sec)", 
    10421041              (unsigned)(var.cmp_len/1000000), (unsigned)kbytes, 
    10431042              elapsed.sec, elapsed.msec, 
     
    10851084 
    10861085 
    1087     /*  
    1088      * Print maximum parse/sec  
     1086    /* 
     1087     * Print maximum parse/sec 
    10891088     */ 
    10901089    for (i=0, max=0; i<COUNT; ++i) 
Note: See TracChangeset for help on using the changeset viewer.