Ignore:
Timestamp:
Feb 4, 2014 10:13:56 AM (11 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/pjlib/src/pjlib-test/test.c

    r4712 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" 
     
    3939const char *param_echo_server = ECHO_SERVER_ADDRESS; 
    4040int param_echo_port = ECHO_SERVER_START_PORT; 
    41 int param_log_decor = PJ_LOG_HAS_NEWLINE | PJ_LOG_HAS_TIME |  
     41int param_log_decor = PJ_LOG_HAS_NEWLINE | PJ_LOG_HAS_TIME | 
    4242                      PJ_LOG_HAS_MICRO_SEC; 
    4343 
     
    6464        return rc; 
    6565    } 
    66      
     66 
    6767    //pj_dump_config(); 
    6868    pj_caching_pool_init( &caching_pool, NULL, 0 ); 
     
    9999    DO_TEST( string_test() ); 
    100100#endif 
    101      
     101 
    102102#if INCLUDE_FIFOBUF_TEST 
    103103    DO_TEST( fifobuf_test() ); 
     
    185185        param_echo_sock_type = pj_SOCK_DGRAM(); 
    186186 
    187     echo_client( param_echo_sock_type,  
    188                  param_echo_server,  
     187    echo_client( param_echo_sock_type, 
     188                 param_echo_server, 
    189189                 param_echo_port); 
    190190#endif 
     
    197197 
    198198    PJ_LOG(3,("test", "")); 
    199   
     199 
    200200    pj_thread_get_stack_info(pj_thread_this(), &filename, &line); 
    201     PJ_LOG(3,("test", "Stack max usage: %u, deepest: %s:%u",  
     201    PJ_LOG(3,("test", "Stack max usage: %u, deepest: %s:%u", 
    202202                      pj_thread_get_stack_max_usage(pj_thread_this()), 
    203203                      filename, line)); 
     
    206206    else 
    207207        PJ_LOG(3,("test", "Test completed with error(s)")); 
    208      
     208 
    209209    pj_shutdown(); 
    210      
     210 
    211211    return 0; 
    212212} 
     
    217217{ 
    218218    PJ_USE_EXCEPTION; 
    219  
    220     pj_AF_INET(); 
    221219 
    222220    PJ_TRY { 
     
    225223    PJ_CATCH_ANY { 
    226224        int id = PJ_GET_EXCEPTION(); 
    227         PJ_LOG(3,("test", "FATAL: unhandled exception id %d (%s)",  
     225        PJ_LOG(3,("test", "FATAL: unhandled exception id %d (%s)", 
    228226                  id, pj_exception_id_name(id))); 
    229227    } 
Note: See TracChangeset for help on using the changeset viewer.