From 88977b45d7699c5ac4f61edb6bc7a61a7f460067 Mon Sep 17 00:00:00 2001
From: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
Date: Thu, 2 Oct 2008 15:37:40 -0400
Subject: [PATCH] unused variable in useragent + signed comparison

---
 src/managerimpl.cpp | 4 ++--
 src/useragent.cpp   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/managerimpl.cpp b/src/managerimpl.cpp
index 29ef4bd75b..0ac9bd2d5a 100644
--- a/src/managerimpl.cpp
+++ b/src/managerimpl.cpp
@@ -551,7 +551,7 @@ ManagerImpl::playDtmf(char code, bool isTalking)
   if( CHECK_INTERFACE( layer , PULSEAUDIO ))
   {
   // Cache the samples on the sound server
-  (PulseLayer*)audiolayer->putInCache( code, _buf , size * sizeof(SFLDataFormat) );
+  // (PulseLayer*)audiolayer->putInCache( code, _buf , size * sizeof(SFLDataFormat) );
   }
 
   delete[] _buf; _buf = 0;
@@ -2226,7 +2226,7 @@ ManagerImpl::loadAccountMap()
   TokenList::iterator iter = sections.begin();
   while(iter != sections.end()) {
     // Check if it starts with "Account:" (SIP and IAX pour le moment)
-    if (iter->find("Account:") == -1) {
+    if ((int)(iter->find("Account:")) == -1) {
       iter++;
       continue;
     }
diff --git a/src/useragent.cpp b/src/useragent.cpp
index bc59c7426a..0d156f5c90 100644
--- a/src/useragent.cpp
+++ b/src/useragent.cpp
@@ -348,7 +348,7 @@ void UserAgent::busy_sleep(unsigned msec)
 #endif
 }
 
-bool UserAgent::addAccount(AccountID id, pjsip_regc **regc2, const std::string& server, const std::string& user, const std::string& passwd, const int& timeout) {
+bool UserAgent::addAccount(AccountID id, pjsip_regc **regc2, const std::string& server, const std::string& user, const std::string& passwd, const int& timeout UNUSED) {
     pj_status_t status;
     AccountID *currentId = new AccountID(id);
     char contactTmp[256];
@@ -693,7 +693,7 @@ pj_bool_t UserAgent::mod_on_rx_request(pjsip_rx_data *rdata) {
 	// Retrieve all the message. Should contains only the method name but ...
 	request =  rdata->msg_info.msg->line.req.method.name.ptr;
 	// Check if the message is a notification
-	if( request.find( method_name ) != -1 ) {
+	if( request.find( method_name ) != (size_t)-1 ) {
     		set_voicemail_info( account_id, rdata->msg_info.msg->body );
 	}
         pjsip_endpt_respond_stateless(getInstance()->getEndPoint(), rdata, PJSIP_SC_OK, NULL, NULL, NULL);
-- 
GitLab