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

    r4537 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" 
     
    109109 
    110110    st->timer_cnt = (unsigned)pj_timer_heap_count(cfg->timer_heap); 
    111      
     111 
    112112    cp = (pj_caching_pool*)cfg->pf; 
    113113    st->pool_used_cnt = (unsigned)cp->used_count; 
    114114} 
    115115 
    116 int check_pjlib_state(pj_stun_config *cfg,  
     116int check_pjlib_state(pj_stun_config *cfg, 
    117117                      const struct pjlib_state *initial_st) 
    118118{ 
     
    154154pj_pool_factory *mem; 
    155155 
    156 int param_log_decor = PJ_LOG_HAS_NEWLINE | PJ_LOG_HAS_TIME |  
     156int param_log_decor = PJ_LOG_HAS_NEWLINE | PJ_LOG_HAS_TIME | 
    157157                      PJ_LOG_HAS_MICRO_SEC; 
    158158 
     
    179179    pj_log_set_level(3); 
    180180    pj_log_set_decor(param_log_decor); 
     181    PJ_UNUSED_ARG(test_log_func); 
    181182#elif 1 
    182183    log_file = fopen("pjnath-test.log", "wt"); 
     
    191192        return rc; 
    192193    } 
    193      
     194 
    194195    pj_dump_config(); 
    195196    pj_caching_pool_init( &caching_pool, &pj_pool_factory_default_policy, 0 ); 
     
    234235    PJ_CATCH_ANY { 
    235236        int id = PJ_GET_EXCEPTION(); 
    236         PJ_LOG(3,("test", "FATAL: unhandled exception id %d (%s)",  
     237        PJ_LOG(3,("test", "FATAL: unhandled exception id %d (%s)", 
    237238                  id, pj_exception_id_name(id))); 
    238239    } 
Note: See TracChangeset for help on using the changeset viewer.