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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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, 
Note: See TracChangeset for help on using the changeset viewer.