Changeset 4890


Ignore:
Timestamp:
Aug 19, 2014 12:54:34 AM (10 years ago)
Author:
bennylp
Message:

Re #1751: fixed miscellaneous gcc warnings

Location:
pjproject/trunk
Files:
12 edited

Legend:

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

    r4601 r4890  
    498498        bytes_read = read_op->size; 
    499499 
    500         if ((read_op->op == PJ_IOQUEUE_OP_RECV_FROM)) { 
     500        if (read_op->op == PJ_IOQUEUE_OP_RECV_FROM) { 
    501501            read_op->op = PJ_IOQUEUE_OP_NONE; 
    502502            rc = pj_sock_recvfrom(h->fd, read_op->buf, &bytes_read,  
     
    504504                                  read_op->rmt_addr,  
    505505                                  read_op->rmt_addrlen); 
    506         } else if ((read_op->op == PJ_IOQUEUE_OP_RECV)) { 
     506        } else if (read_op->op == PJ_IOQUEUE_OP_RECV) { 
    507507            read_op->op = PJ_IOQUEUE_OP_NONE; 
    508508            rc = pj_sock_recv(h->fd, read_op->buf, &bytes_read,  
  • pjproject/trunk/pjlib/src/pj/os_timestamp_posix.c

    r3553 r4890  
    126126#include <errno.h> 
    127127 
    128 #define NSEC_PER_SEC    1000000000 
     128#ifndef NSEC_PER_SEC 
     129#       define NSEC_PER_SEC     1000000000 
     130#endif 
    129131 
    130132PJ_DEF(pj_status_t) pj_get_timestamp(pj_timestamp *ts) 
  • pjproject/trunk/pjlib/src/pj/pool.c

    r4537 r4890  
    144144#if PJ_DEBUG 
    145145    if (p == NULL) { 
    146         p = p; 
     146        PJ_UNUSED_ARG(p); 
    147147    } 
    148148#endif 
  • pjproject/trunk/pjlib/src/pjlib-test/exception.c

    r3553 r4890  
    121121     */ 
    122122    PJ_TRY { 
    123         rc = rc; 
     123        PJ_UNUSED_ARG(rc); 
    124124    } 
    125125    PJ_CATCH_ANY { 
  • pjproject/trunk/pjmedia/src/pjmedia/endpoint.c

    r4739 r4890  
    3535#define THIS_FILE   "endpoint.c" 
    3636 
    37 static const pj_str_t STR_AUDIO = { "audio", 5}; 
    38 static const pj_str_t STR_VIDEO = { "video", 5}; 
    3937static const pj_str_t STR_IN = { "IN", 2 }; 
    4038static const pj_str_t STR_IP4 = { "IP4", 3}; 
  • pjproject/trunk/pjmedia/src/pjmedia/session.c

    r3841 r4890  
    4949#endif 
    5050 
    51  
    52 static const pj_str_t ID_AUDIO = { "audio", 5}; 
    53 static const pj_str_t ID_VIDEO = { "video", 5}; 
    54 static const pj_str_t ID_APPLICATION = { "application", 11}; 
    55 static const pj_str_t ID_IN = { "IN", 2 }; 
    56 static const pj_str_t ID_IP4 = { "IP4", 3}; 
    57 static const pj_str_t ID_IP6 = { "IP6", 3}; 
    58 static const pj_str_t ID_RTP_AVP = { "RTP/AVP", 7 }; 
    59 static const pj_str_t ID_RTP_SAVP = { "RTP/SAVP", 8 }; 
    60 //static const pj_str_t ID_SDP_NAME = { "pjmedia", 7 }; 
    61 static const pj_str_t ID_RTPMAP = { "rtpmap", 6 }; 
    62 static const pj_str_t ID_TELEPHONE_EVENT = { "telephone-event", 15 }; 
    63  
    64 static const pj_str_t STR_INACTIVE = { "inactive", 8 }; 
    65 static const pj_str_t STR_SENDRECV = { "sendrecv", 8 }; 
    66 static const pj_str_t STR_SENDONLY = { "sendonly", 8 }; 
    67 static const pj_str_t STR_RECVONLY = { "recvonly", 8 }; 
    68  
    6951/* 
    7052 * Initialize session info from SDP session descriptors. 
  • pjproject/trunk/pjmedia/src/pjmedia/stream_info.c

    r3982 r4890  
    3333static const pj_str_t ID_TELEPHONE_EVENT = { "telephone-event", 15 }; 
    3434 
    35 static const pj_str_t STR_INACTIVE = { "inactive", 8 }; 
    36 static const pj_str_t STR_SENDRECV = { "sendrecv", 8 }; 
    37 static const pj_str_t STR_SENDONLY = { "sendonly", 8 }; 
    38 static const pj_str_t STR_RECVONLY = { "recvonly", 8 }; 
    39  
    40  
    4135/* 
    4236 * Internal function for collecting codec info and param from the SDP media. 
     
    326320                                           unsigned stream_idx) 
    327321{ 
     322    const pj_str_t STR_INACTIVE = { "inactive", 8 }; 
     323    const pj_str_t STR_SENDONLY = { "sendonly", 8 }; 
     324    const pj_str_t STR_RECVONLY = { "recvonly", 8 }; 
     325 
    328326    pjmedia_codec_mgr *mgr; 
    329327    const pjmedia_sdp_attr *attr; 
  • pjproject/trunk/pjmedia/src/pjmedia/vid_stream_info.c

    r4257 r4890  
    3434static const pj_str_t ID_RTPMAP = { "rtpmap", 6 }; 
    3535 
    36 static const pj_str_t STR_INACTIVE = { "inactive", 8 }; 
    37 static const pj_str_t STR_SENDRECV = { "sendrecv", 8 }; 
    38 static const pj_str_t STR_SENDONLY = { "sendonly", 8 }; 
    39 static const pj_str_t STR_RECVONLY = { "recvonly", 8 }; 
    40  
    41  
    4236/* 
    4337 * Internal function for collecting codec info and param from the SDP media. 
     
    191185                                           unsigned stream_idx) 
    192186{ 
     187    const pj_str_t STR_INACTIVE = { "inactive", 8 }; 
     188    const pj_str_t STR_SENDONLY = { "sendonly", 8 }; 
     189    const pj_str_t STR_RECVONLY = { "recvonly", 8 }; 
     190 
    193191    const pjmedia_sdp_attr *attr; 
    194192    const pjmedia_sdp_media *local_m; 
  • pjproject/trunk/pjnath/src/pjnath/stun_auth.c

    r4537 r4890  
    150150 
    151151 
    152 PJ_INLINE(pj_uint16_t) GET_VAL16(const pj_uint8_t *pdu, unsigned pos) 
     152/*unused PJ_INLINE(pj_uint16_t) GET_VAL16(const pj_uint8_t *pdu, unsigned pos) 
    153153{ 
    154154    return (pj_uint16_t) ((pdu[pos] << 8) + pdu[pos+1]); 
    155 } 
     155}*/ 
    156156 
    157157 
  • pjproject/trunk/pjnath/src/pjnath/stun_msg.c

    r4712 r4890  
    753753} 
    754754 
    755 PJ_INLINE(pj_uint16_t) GETVAL16N(const pj_uint8_t *buf, unsigned pos) 
     755/*unused PJ_INLINE(pj_uint16_t) GETVAL16N(const pj_uint8_t *buf, unsigned pos) 
    756756{ 
    757757    return pj_htons(GETVAL16H(buf,pos)); 
    758 } 
     758}*/ 
    759759 
    760760static void PUTVAL16H(pj_uint8_t *buf, unsigned pos, pj_uint16_t hval) 
     
    772772} 
    773773 
    774 PJ_INLINE(pj_uint32_t) GETVAL32N(const pj_uint8_t *buf, unsigned pos) 
     774/*unused PJ_INLINE(pj_uint32_t) GETVAL32N(const pj_uint8_t *buf, unsigned pos) 
    775775{ 
    776776    return pj_htonl(GETVAL32H(buf,pos)); 
    777 } 
     777}*/ 
    778778 
    779779static void PUTVAL32H(pj_uint8_t *buf, unsigned pos, pj_uint32_t hval) 
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_xfer.c

    r4713 r4890  
    8080static const pj_str_t STR_MESSAGE = { "message", 7 }; 
    8181static const pj_str_t STR_SIPFRAG = { "sipfrag", 7 }; 
    82 static const pj_str_t STR_SIPFRAG_VERSION = {";version=2.0", 12 }; 
    8382 
    8483 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_im.c

    r4712 r4890  
    6969static const pj_str_t STR_MIME_APP         = { "application", 11 }; 
    7070static const pj_str_t STR_MIME_ISCOMPOSING = { "im-iscomposing+xml", 18 }; 
    71 static const pj_str_t STR_MIME_TEXT        = { "text", 4 }; 
    72 static const pj_str_t STR_MIME_PLAIN       = { "plain", 5 }; 
    7371 
    7472 
     
    7775static pj_bool_t acceptable_message(const pjsip_media_type *mime) 
    7876{ 
     77    const pj_str_t STR_MIME_TEXT           = { "text", 4 }; 
     78    const pj_str_t STR_MIME_PLAIN          = { "plain", 5 }; 
    7979    return (pj_stricmp(&mime->type, &STR_MIME_TEXT)==0 && 
    8080            pj_stricmp(&mime->subtype, &STR_MIME_PLAIN)==0) 
Note: See TracChangeset for help on using the changeset viewer.