Changeset 6157


Ignore:
Timestamp:
Feb 5, 2020 3:05:30 AM (5 years ago)
Author:
nanang
Message:

Misc (re #2210): Fixed various compile warnings on MSVC2005.

Location:
pjproject/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/openh264.cpp

    r6101 r6157  
    169169 
    170170static void log_print(void* ctx, int level, const char* string) { 
     171    PJ_UNUSED_ARG(ctx); 
    171172    PJ_LOG(4,("[OPENH264_LOG]", "[L%d] %s", level, string)); 
    172173} 
  • pjproject/trunk/pjmedia/src/pjmedia/echo_speex.c

    r6129 r6157  
    6060{ 
    6161    speex_ec *echo; 
    62     int i, sampling_rate; 
     62    int sampling_rate; 
     63    unsigned i; 
    6364 
    6465    *p_echo = NULL; 
  • pjproject/trunk/pjmedia/src/pjmedia/vid_codec_util.c

    r6150 r6157  
    787787        } else if (pj_stricmp(&fmtp->param[i].name, &PROFILE_ID) == 0) { 
    788788            tmp = pj_strtoul(&fmtp->param[i].val); 
    789             vpx_fmtp->profile_id = PJ_MAX(tmp, vpx_fmtp->profile_id); 
     789            vpx_fmtp->profile_id = (pj_uint8_t) 
     790                                   PJ_MAX(tmp, vpx_fmtp->profile_id); 
    790791        } 
    791792    } 
  • pjproject/trunk/pjnath/src/pjnath/turn_session.c

    r6071 r6157  
    13271327 
    13281328    sess = (pj_turn_session*) pj_stun_session_get_user_data(stun); 
    1329     if (*sess->cb.on_stun_send_pkt) { 
     1329    if (sess->cb.on_stun_send_pkt) { 
    13301330        return (*sess->cb.on_stun_send_pkt)(sess, (const pj_uint8_t*)pkt, 
    13311331                                            (unsigned)pkt_size, 
  • pjproject/trunk/pjnath/src/pjnath/turn_sock.c

    r6114 r6157  
    889889                              pj_ssize_t sent) 
    890890{ 
    891     unsigned header_len, sent_size; 
    892  
    893891    /* Don't report to callback if this is internal message. */ 
    894892    if (send_key == &turn_sock->int_send_key) { 
     
    897895 
    898896    if (turn_sock->cb.on_data_sent) { 
     897        pj_ssize_t header_len, sent_size; 
     898 
    899899        /* Remove the length of packet header from sent size. */ 
    900900        header_len = turn_sock->pkt_len - turn_sock->body_len; 
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c

    r6142 r6157  
    4646#define REGC_TSX_TIMEOUT        33000 
    4747 
    48 enum { NOEXP = PJSIP_REGC_EXPIRATION_NOT_SPECIFIED }; 
     48#define NOEXP                   PJSIP_REGC_EXPIRATION_NOT_SPECIFIED 
    4949 
    5050static const pj_str_t XUID_PARAM_NAME = { "x-uid", 5 }; 
  • pjproject/trunk/pjsip/src/pjsua2/media.cpp

    r6119 r6157  
    18471847    packet_loss = config.packet_loss; 
    18481848    complexity = config.complexity; 
    1849     cbr = config.cbr; 
     1849    cbr = PJ2BOOL(config.cbr); 
    18501850} 
    18511851 
  • pjproject/trunk/third_party/build/speex/config.h

    r5653 r6157  
    2929#   pragma warning(disable: 4456)   // declaration of '[var]' hides previous local declaration 
    3030#   pragma warning(disable: 4267)   // conversion from 'size_t' to 'int', possible loss of data 
     31#   pragma warning(disable: 4706)   // assignment within conditional expression 
    3132//#   pragma warning(disable: 4701)   // local variable used without initialized 
    3233#endif 
Note: See TracChangeset for help on using the changeset viewer.