Changeset 911 for pjproject


Ignore:
Timestamp:
Jan 27, 2007 6:31:51 PM (18 years ago)
Author:
bennylp
Message:

Fixed various gcc warnings especially related to ticket #82 when particular codecs are disabled

Location:
pjproject/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ioqueue_select.c

    r750 r911  
    316316{ 
    317317    pj_ioqueue_key_t *key = NULL; 
     318#if defined(PJ_WIN32) && PJ_WIN32!=0 || \ 
     319    defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE!=0 
     320    u_long value; 
     321#else 
    318322    pj_uint32_t value; 
     323#endif 
    319324    pj_status_t rc = PJ_SUCCESS; 
    320325     
     
    355360#if defined(PJ_WIN32) && PJ_WIN32!=0 || \ 
    356361    defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE!=0 
    357     if (ioctlsocket(sock, FIONBIO, (u_long*)&value)) { 
     362    if (ioctlsocket(sock, FIONBIO, &value)) { 
    358363#else 
    359364    if (ioctl(sock, FIONBIO, &value)) { 
  • pjproject/trunk/pjsip-apps/src/samples/simpleua.c

    r668 r911  
    254254     * Add PCMA/PCMU codec to the media endpoint.  
    255255     */ 
     256#if defined(PJMEDIA_HAS_G711_CODEC) && PJMEDIA_HAS_G711_CODEC!=0 
    256257    status = pjmedia_codec_g711_init(g_med_endpt); 
    257258    PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1); 
     259#endif 
    258260 
    259261     
  • pjproject/trunk/pjsip-apps/src/samples/siprtp.c

    r893 r911  
    407407 
    408408    /* Must register codecs to be supported */ 
     409#if defined(PJMEDIA_HAS_G711_CODEC) && PJMEDIA_HAS_G711_CODEC!=0 
    409410    pjmedia_codec_g711_init(app.med_endpt); 
     411#endif 
    410412 
    411413    /* RTP port counter */ 
  • pjproject/trunk/pjsip-apps/src/samples/streamutil.c

    r856 r911  
    8686{ 
    8787    pj_status_t status; 
     88 
     89    /* To suppress warning about unused var when all codecs are disabled */ 
     90    PJ_UNUSED_ARG(status); 
    8891 
    8992#if defined(PJMEDIA_HAS_G711_CODEC) && PJMEDIA_HAS_G711_CODEC!=0 
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r895 r911  
    21882188 
    21892189    /** 
    2190      * Buddy is known to be offline. 
     2190     * Buddy is known to be online. 
    21912191     */ 
    21922192    PJSUA_BUDDY_STATUS_ONLINE, 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r906 r911  
    4141    pj_status_t status; 
    4242 
     43    /* To suppress warning about unused var when all codecs are disabled */ 
     44    PJ_UNUSED_ARG(codec_id); 
     45 
    4346    /* Copy configuration */ 
    4447    pj_memcpy(&pjsua_var.media_cfg, cfg, sizeof(*cfg)); 
Note: See TracChangeset for help on using the changeset viewer.