- Timestamp:
- Oct 21, 2013 6:37:30 AM (11 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/compat/cc_armcc.h
r3553 r4624 44 44 #define PJ_NORETURN 45 45 #define PJ_ATTR_NORETURN __attribute__ ((noreturn)) 46 #define PJ_ATTR_MAY_ALIAS __attribute__ ((__may_alias__)) 46 47 47 48 #define PJ_HAS_INT64 1 -
pjproject/trunk/pjlib/include/pj/compat/cc_codew.h
r3553 r4624 40 40 #define PJ_NORETURN 41 41 #define PJ_ATTR_NORETURN 42 #define PJ_ATTR_MAY_ALIAS 42 43 43 44 #define PJ_HAS_INT64 1 -
pjproject/trunk/pjlib/include/pj/compat/cc_gcc.h
r3664 r4624 54 54 #define PJ_INLINE_SPECIFIER static __inline 55 55 #define PJ_ATTR_NORETURN 56 #define PJ_ATTR_MAY_ALIAS 56 57 #else 57 58 typedef long long pj_int64_t; … … 59 60 #define PJ_INLINE_SPECIFIER static inline 60 61 #define PJ_ATTR_NORETURN __attribute__ ((noreturn)) 62 #define PJ_ATTR_MAY_ALIAS __attribute__((__may_alias__)) 61 63 #endif 62 64 -
pjproject/trunk/pjlib/include/pj/compat/cc_gcce.h
r3553 r4624 40 40 #define PJ_NORETURN 41 41 #define PJ_ATTR_NORETURN __attribute__ ((noreturn)) 42 #define PJ_ATTR_MAY_ALIAS __attribute__ ((__may_alias__)) 42 43 43 44 #define PJ_HAS_INT64 1 -
pjproject/trunk/pjlib/include/pj/compat/cc_msvc.h
r3664 r4624 69 69 #define PJ_NORETURN __declspec(noreturn) 70 70 #define PJ_ATTR_NORETURN 71 #define PJ_ATTR_MAY_ALIAS 71 72 72 73 #define PJ_HAS_INT64 1 -
pjproject/trunk/pjlib/include/pj/compat/cc_mwcc.h
r3553 r4624 40 40 #define PJ_NORETURN 41 41 #define PJ_ATTR_NORETURN __attribute__ ((noreturn)) 42 #define PJ_ATTR_MAY_ALIAS 42 43 43 44 #define PJ_HAS_INT64 1 -
pjproject/trunk/pjlib/include/pj/list.h
r3553 r4624 75 75 { 76 76 PJ_DECL_LIST_MEMBER(void); 77 } ;77 } PJ_ATTR_MAY_ALIAS; /* may_alias avoids warning with gcc-4.4 -Wall -O2 */ 78 78 79 79 -
pjproject/trunk/pjlib/src/pj/log.c
r4613 r4624 108 108 } 109 109 110 static int log_get_raw_indent( )110 static int log_get_raw_indent(void) 111 111 { 112 112 return (long)(pj_ssize_t)pj_thread_local_get(thread_indent_tls_id); … … 120 120 } 121 121 122 static int log_get_raw_indent( )122 static int log_get_raw_indent(void) 123 123 { 124 124 return log_indent; … … 126 126 #endif /* PJ_LOG_ENABLE_INDENT && PJ_HAS_THREADS */ 127 127 128 static int log_get_indent( )128 static int log_get_indent(void) 129 129 { 130 130 int indent = log_get_raw_indent(); -
pjproject/trunk/pjlib/src/pj/pool_buf.c
r4537 r4624 44 44 } 45 45 46 static pj_status_t pool_buf_initialize( )46 static pj_status_t pool_buf_initialize(void) 47 47 { 48 48 pj_atexit(&pool_buf_cleanup); -
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r4613 r4624 611 611 ssock->ossl_rbio = BIO_new(BIO_s_mem()); 612 612 ssock->ossl_wbio = BIO_new(BIO_s_mem()); 613 BIO_set_close(ssock->ossl_rbio, BIO_CLOSE);614 BIO_set_close(ssock->ossl_wbio, BIO_CLOSE);613 (void)BIO_set_close(ssock->ossl_rbio, BIO_CLOSE); 614 (void)BIO_set_close(ssock->ossl_wbio, BIO_CLOSE); 615 615 SSL_set_bio(ssock->ossl_ssl, ssock->ossl_rbio, ssock->ossl_wbio); 616 616 … … 1274 1274 1275 1275 /* Reset write BIO */ 1276 BIO_reset(ssock->ossl_wbio);1276 (void)BIO_reset(ssock->ossl_wbio); 1277 1277 1278 1278 /* Ticket #1573: Don't hold mutex while calling PJLIB socket send(). */ -
pjproject/trunk/pjmedia/src/test/test.c
r3893 r4624 48 48 */ 49 49 #if PJMEDIA_HAS_G711_CODEC==0 50 intdummy()50 void *dummy() 51 51 { 52 52 // Dummy 53 return (int)&pjmedia_plc_save;53 return &pjmedia_plc_save; 54 54 } 55 55 #endif -
pjproject/trunk/pjsip-apps/src/samples/icedemo.c
r4613 r4624 515 515 } 516 516 517 #define PRINT( fmt, arg0, arg1, arg2, arg3, arg4, arg5) \517 #define PRINT(...) \ 518 518 printed = pj_ansi_snprintf(p, maxlen - (p-buffer), \ 519 fmt, arg0, arg1, arg2, arg3, arg4, arg5); \519 __VA_ARGS__); \ 520 520 if (printed <= 0 || printed >= (int)(maxlen - (p-buffer))) \ 521 521 return -PJ_ETOOSMALL; \ … … 541 541 542 542 PRINT("%s\n", 543 pj_ice_get_cand_type_name(cand->type), 544 0, 0, 0, 0, 0); 543 pj_ice_get_cand_type_name(cand->type)); 545 544 546 545 if (p == buffer+maxlen) … … 564 563 565 564 /* Write "dummy" SDP v=, o=, s=, and t= lines */ 566 PRINT("v=0\no=- 3414953978 3414953978 IN IP4 localhost\ns=ice\nt=0 0\n", 567 0, 0, 0, 0, 0, 0); 565 PRINT("v=0\no=- 3414953978 3414953978 IN IP4 localhost\ns=ice\nt=0 0\n"); 568 566 569 567 /* Get ufrag and pwd from current session */ … … 576 574 local_ufrag.ptr, 577 575 (int)local_pwd.slen, 578 local_pwd.ptr, 579 0, 0); 576 local_pwd.ptr); 580 577 581 578 /* Write each component */ … … 597 594 (int)pj_sockaddr_get_port(&cand[0].addr), 598 595 pj_sockaddr_print(&cand[0].addr, ipaddr, 599 sizeof(ipaddr), 0), 600 0, 0, 0, 0); 596 sizeof(ipaddr), 0)); 601 597 } else if (comp==1) { 602 598 /* For component 2, default address is in a=rtcp line */ … … 604 600 (int)pj_sockaddr_get_port(&cand[0].addr), 605 601 pj_sockaddr_print(&cand[0].addr, ipaddr, 606 sizeof(ipaddr), 0), 607 0, 0, 0, 0); 602 sizeof(ipaddr), 0)); 608 603 } else { 609 604 /* For other components, we'll just invent this.. */ … … 611 606 (int)pj_sockaddr_get_port(&cand[0].addr), 612 607 pj_sockaddr_print(&cand[0].addr, ipaddr, 613 sizeof(ipaddr), 0), 614 0, 0, 0, 0); 608 sizeof(ipaddr), 0)); 615 609 } 616 610
Note: See TracChangeset
for help on using the changeset viewer.