Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
430d2b65
Commit
430d2b65
authored
16 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
configure.ac
+1
-1
1 addition, 1 deletion
configure.ac
src/audio/alsalayer.cpp
+4
-2
4 additions, 2 deletions
src/audio/alsalayer.cpp
src/global.h
+2
-0
2 additions, 0 deletions
src/global.h
src/sipvoiplink.cpp
+4
-4
4 additions, 4 deletions
src/sipvoiplink.cpp
src/useragent.h
+2
-2
2 additions, 2 deletions
src/useragent.h
with
13 additions
and
9 deletions
configure.ac
+
1
−
1
View file @
430d2b65
...
...
@@ -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 -We
ffc++ -Wfatal-errors -Werror
"
CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS $USER_INCLUDES -O0 -g -Wall -We
xtra
"
dnl Check for header files
AC_FUNC_ALLOCA
...
...
This diff is collapsed.
Click to expand it.
src/audio/alsalayer.cpp
+
4
−
2
View file @
430d2b65
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
src/global.h
+
2
−
0
View file @
430d2b65
...
...
@@ -126,4 +126,6 @@ typedef short int16;
#define PULSEAUDIO 1
#define CHECK_INTERFACE( layer , api ) (layer == api)
#define UNUSED __attribute__((__unused__))
#endif // __GLOBAL_H__
This diff is collapsed.
Click to expand it.
src/sipvoiplink.cpp
+
4
−
4
View file @
430d2b65
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
src/useragent.h
+
2
−
2
View file @
430d2b65
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment