Changeset 5678 for pjproject


Ignore:
Timestamp:
Nov 1, 2017 4:55:29 AM (21 months ago)
Author:
riza
Message:

Re #2045 (misc): Fix various warning raised from using clang 4.0.1. Thanks to
Alexander Traud for the report.

Location:
pjproject/trunk
Files:
6 edited

Legend:

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

    r5648 r5678  
    9999    } 
    100100    return cid; 
    101 }; 
     101} 
    102102 
    103103static unsigned get_nid_from_cid(unsigned cid) 
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/alsa_dev.c

    r5646 r5678  
    938938    struct alsa_factory *af = ((struct alsa_stream*)strm)->af; 
    939939 
    940     if (cap==PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING && af->pb_mixer_name) { 
     940    if (cap==PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING &&  
     941        pj_ansi_strlen(af->pb_mixer_name))  
     942    { 
    941943        pj_ssize_t min, max; 
    942944        snd_mixer_t *handle; 
  • pjproject/trunk/pjmedia/src/pjmedia/vid_codec_util.c

    r5659 r5678  
    174174 
    175175    return mpi; 
    176 }; 
     176} 
    177177 
    178178PJ_DEF(pj_status_t) pjmedia_vid_codec_h263_apply_fmtp( 
  • pjproject/trunk/pjmedia/src/pjmedia/vid_port.c

    r5595 r5678  
    483483    pjmedia_vid_port *vp; 
    484484    pjmedia_video_format_detail *vfd; 
    485     char dev_name[64]; 
    486485    char fmt_name[5]; 
    487486    pjmedia_vid_dev_cb vid_cb; 
     
    491490    pjmedia_vid_dev_param vparam; 
    492491    pjmedia_vid_dev_info di; 
     492    char dev_name[sizeof(di.name) + sizeof(di.driver) + 4]; 
    493493 
    494494    PJ_ASSERT_RETURN(pool && prm && p_vid_port, PJ_EINVAL); 
     
    523523    dev_name[0] = '\0'; 
    524524 
    525     pj_ansi_snprintf(dev_name, sizeof(dev_name), "%s [%s]", 
    526                      di.name, di.driver); 
     525    pj_ansi_snprintf(dev_name, sizeof(dev_name), "%s [%s]", di.name, di.driver); 
    527526    pjmedia_fourcc_name(vparam.fmt.id, fmt_name); 
    528527    PJ_LOG(4,(THIS_FILE, 
  • pjproject/trunk/pjnath/src/pjnath/stun_sock.c

    r5534 r5678  
    137137 
    138138    return op < PJ_ARRAY_SIZE(names) ? names[op] : "???"; 
    139 }; 
     139} 
    140140 
    141141 
  • pjproject/trunk/pjsip/src/test/regc_test.c

    r5535 r5678  
    6565    else 
    6666        return PJ_SUCCESS; 
    67 }; 
     67} 
    6868 
    6969 
     
    526526 
    527527    return PJ_SUCCESS; 
    528 }; 
     528} 
    529529 
    530530 
     
    701701    pjsip_regc_destroy(regc); 
    702702    return ret; 
    703 }; 
     703} 
    704704 
    705705 
     
    732732 
    733733    return ret; 
    734 }; 
     734} 
    735735 
    736736 
Note: See TracChangeset for help on using the changeset viewer.