Skip to content
Snippets Groups Projects
Commit 430d2b65 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

use GCC unused __attribute__to remove unused variables warnings

done in sipvoiplink, alsalayer
parent eface0d7
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ dnl Define C++ as default language
AC_LANG(C++)
dnl Setup C++ compiler flags
CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS $USER_INCLUDES -O0 -g -Wall -Weffc++ -Wfatal-errors -Werror"
CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS $USER_INCLUDES -O0 -g -Wall -Wextra"
dnl Check for header files
AC_FUNC_ALLOCA
......
......@@ -475,7 +475,9 @@ AlsaLayer::read( void* buffer, int toCopy)
}
int
AlsaLayer::putInCache( char code, void *buffer, int toCopy )
AlsaLayer::putInCache( char code UNUSED,
void *buffer UNUSED,
int toCopy UNUSED )
{
return 1;
}
......
......@@ -126,4 +126,6 @@ typedef short int16;
#define PULSEAUDIO 1
#define CHECK_INTERFACE( layer , api ) (layer == api)
#define UNUSED __attribute__((__unused__))
#endif // __GLOBAL_H__
......@@ -355,7 +355,7 @@ SIPVoIPLink::refuse (const CallID& id)
}
bool
SIPVoIPLink::carryingDTMFdigits(const CallID& id, char code)
SIPVoIPLink::carryingDTMFdigits(const CallID& id, char code UNUSED)
{
SIPCall* call = getSIPCall(id);
if (call==0) { _debug("Call doesn't exist\n"); return false; }
......@@ -382,7 +382,7 @@ SIPVoIPLink::carryingDTMFdigits(const CallID& id, char code)
}
bool
SIPVoIPLink::sendMessage(const std::string& to, const std::string& body)
SIPVoIPLink::sendMessage(const std::string& to UNUSED, const std::string& body UNUSED)
{
return true;
}
......@@ -406,7 +406,7 @@ SIPVoIPLink::SIPOutgoingInvite(SIPCall* call)
}
bool
SIPVoIPLink::SIPStartCall(SIPCall* call, const std::string& subject)
SIPVoIPLink::SIPStartCall(SIPCall* call, const std::string& subject UNUSED)
{
if (!call) return false;
......@@ -475,7 +475,7 @@ SIPVoIPLink::SIPToHeader(const std::string& to)
}
bool
SIPVoIPLink::SIPCheckUrl(const std::string& url)
SIPVoIPLink::SIPCheckUrl(const std::string& url UNUSED)
{
return true;
}
......
......@@ -125,11 +125,11 @@ public:
bool makeOutgoingCall(const std::string& to, SIPCall* call, const AccountID& id);
pj_pool_t *getAppPool() {return _pool;}
static pj_bool_t mod_on_rx_request(pjsip_rx_data *rdata);
static pj_bool_t mod_on_rx_response(pjsip_rx_data *rdata) {return PJ_SUCCESS;}
static pj_bool_t mod_on_rx_response(pjsip_rx_data *rdata UNUSED) {return PJ_SUCCESS;}
static void regc_cb(struct pjsip_regc_cbparam *param);
static void xfer_func_cb( pjsip_evsub *sub, pjsip_event *event);
static void xfer_svr_cb(pjsip_evsub *sub, pjsip_event *event);
static void call_on_media_update( pjsip_inv_session *inv, pj_status_t status) {}
static void call_on_media_update( pjsip_inv_session *inv UNUSED, pj_status_t status UNUSED) {}
static void call_on_state_changed( pjsip_inv_session *inv, pjsip_event *e);
static void call_on_forked(pjsip_inv_session *inv, pjsip_event *e);
static void call_on_tsx_changed(pjsip_inv_session *inv, pjsip_transaction *tsx, pjsip_event *e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment