summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2016-12-19 03:01:55 +0000
committerNanang Izzuddin <nanang@teluu.com>2016-12-19 03:01:55 +0000
commitb8fdf0a75d69c18e9931d513950d85e833074dcb (patch)
tree88ec881eaf33de322a54afc8fb849649c98f2b81
parent7e5ba81d540dbccaedcae760be854f399c83446d (diff)
Misc (re #1945): Fixed various compile warnings.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5501 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjlib/src/pj/os_timestamp_posix.c1
-rw-r--r--pjlib/src/pj/ssl_sock_ossl.c6
-rw-r--r--pjsip/src/pjsua2/endpoint.cpp6
3 files changed, 10 insertions, 3 deletions
diff --git a/pjlib/src/pj/os_timestamp_posix.c b/pjlib/src/pj/os_timestamp_posix.c
index 0cb4035f..e80d3dea 100644
--- a/pjlib/src/pj/os_timestamp_posix.c
+++ b/pjlib/src/pj/os_timestamp_posix.c
@@ -165,6 +165,7 @@ PJ_DEF(pj_status_t) pj_get_timestamp_freq(pj_timestamp *freq)
#include <errno.h>
#include <linux/android_alarm.h>
#include <fcntl.h>
+#include <time.h>
#define NSEC_PER_SEC 1000000000
diff --git a/pjlib/src/pj/ssl_sock_ossl.c b/pjlib/src/pj/ssl_sock_ossl.c
index 5d0cf919..267aea5d 100644
--- a/pjlib/src/pj/ssl_sock_ossl.c
+++ b/pjlib/src/pj/ssl_sock_ossl.c
@@ -406,6 +406,8 @@ static pj_status_t init_openssl(void)
openssl_curves[i].name = cname;
}
#else
+ PJ_UNUSED_ARG(nid);
+ PJ_UNUSED_ARG(cname);
openssl_curves_num = 0;
#endif
@@ -1022,6 +1024,8 @@ static pj_status_t set_curves_list(pj_ssl_sock_t *ssock)
if (ret < 1)
return GET_SSL_STATUS(ssock);
}
+#else
+ PJ_UNUSED_ARG(ssock);
#endif
return PJ_SUCCESS;
@@ -1044,6 +1048,8 @@ static pj_status_t set_sigalgs(pj_ssl_sock_t *ssock)
if (ret < 1)
return GET_SSL_STATUS(ssock);
}
+#else
+ PJ_UNUSED_ARG(ssock);
#endif
return PJ_SUCCESS;
diff --git a/pjsip/src/pjsua2/endpoint.cpp b/pjsip/src/pjsua2/endpoint.cpp
index 2e94b25c..a66cfcf1 100644
--- a/pjsip/src/pjsua2/endpoint.cpp
+++ b/pjsip/src/pjsua2/endpoint.cpp
@@ -1293,7 +1293,7 @@ void Endpoint::on_create_media_transport_srtp(pjsua_call_id call_id,
OnCreateMediaTransportSrtpParam prm;
prm.mediaIdx = media_idx;
prm.srtpUse = srtp_opt->use;
- for (int i = 0; i < srtp_opt->crypto_count; i++) {
+ for (unsigned i = 0; i < srtp_opt->crypto_count; i++) {
SrtpCrypto crypto;
crypto.key = pj2Str(srtp_opt->crypto[i].key);
@@ -1306,11 +1306,11 @@ void Endpoint::on_create_media_transport_srtp(pjsua_call_id call_id,
srtp_opt->use = prm.srtpUse;
srtp_opt->crypto_count = prm.cryptos.size();
- for (int i = 0; i < srtp_opt->crypto_count; i++) {
+ for (unsigned i = 0; i < srtp_opt->crypto_count; i++) {
srtp_opt->crypto[i].key = str2Pj(prm.cryptos[i].key);
srtp_opt->crypto[i].name = str2Pj(prm.cryptos[i].name);
srtp_opt->crypto[i].flags = prm.cryptos[i].flags;
- }
+ }
}
///////////////////////////////////////////////////////////////////////////////