Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
11ff575f
Commit
11ff575f
authored
Feb 13, 2014
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agent: Fix compiler warnings
parent
9adeb101
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
agent/agent.c
agent/agent.c
+2
-2
agent/outputstream.c
agent/outputstream.c
+3
-3
configure.ac
configure.ac
+0
-1
No files found.
agent/agent.c
View file @
11ff575f
...
@@ -2758,11 +2758,11 @@ static void
...
@@ -2758,11 +2758,11 @@ static void
nice_debug_input_message_composition
(
const
NiceInputMessage
*
messages
,
nice_debug_input_message_composition
(
const
NiceInputMessage
*
messages
,
guint
n_messages
)
guint
n_messages
)
{
{
guint
i
;
if
(
!
nice_debug_is_enabled
())
if
(
!
nice_debug_is_enabled
())
return
;
return
;
guint
i
;
for
(
i
=
0
;
i
<
n_messages
;
i
++
)
{
for
(
i
=
0
;
i
<
n_messages
;
i
++
)
{
const
NiceInputMessage
*
message
=
&
messages
[
i
];
const
NiceInputMessage
*
message
=
&
messages
[
i
];
guint
j
;
guint
j
;
...
...
agent/outputstream.c
View file @
11ff575f
...
@@ -347,7 +347,8 @@ nice_output_stream_write (GOutputStream *stream, const void *buffer, gsize count
...
@@ -347,7 +347,8 @@ nice_output_stream_write (GOutputStream *stream, const void *buffer, gsize count
GCancellable
*
cancellable
,
GError
**
error
)
GCancellable
*
cancellable
,
GError
**
error
)
{
{
NiceOutputStream
*
self
=
NICE_OUTPUT_STREAM
(
stream
);
NiceOutputStream
*
self
=
NICE_OUTPUT_STREAM
(
stream
);
gssize
len
=
-
1
;
const
gchar
*
buf
=
buffer
;
gssize
len
=
0
;
gint
n_sent
;
gint
n_sent
;
NiceAgent
*
agent
=
NULL
;
/* owned */
NiceAgent
*
agent
=
NULL
;
/* owned */
gulong
cancel_id
=
0
,
writeable_id
;
gulong
cancel_id
=
0
,
writeable_id
;
...
@@ -377,7 +378,6 @@ nice_output_stream_write (GOutputStream *stream, const void *buffer, gsize count
...
@@ -377,7 +378,6 @@ nice_output_stream_write (GOutputStream *stream, const void *buffer, gsize count
* since nice_agent_recv() is blocking. Currently this uses a fairly dodgy
* since nice_agent_recv() is blocking. Currently this uses a fairly dodgy
* GCond solution; would be much better for nice_agent_send() to block
* GCond solution; would be much better for nice_agent_send() to block
* properly in the main loop. */
* properly in the main loop. */
len
=
0
;
write_data
=
g_slice_new0
(
WriteData
);
write_data
=
g_slice_new0
(
WriteData
);
g_atomic_int_set
(
&
write_data
->
ref_count
,
3
);
g_atomic_int_set
(
&
write_data
->
ref_count
,
3
);
...
@@ -410,7 +410,7 @@ nice_output_stream_write (GOutputStream *stream, const void *buffer, gsize count
...
@@ -410,7 +410,7 @@ nice_output_stream_write (GOutputStream *stream, const void *buffer, gsize count
g_mutex_unlock
(
&
write_data
->
mutex
);
g_mutex_unlock
(
&
write_data
->
mutex
);
n_sent
=
nice_agent_send
(
agent
,
self
->
priv
->
stream_id
,
n_sent
=
nice_agent_send
(
agent
,
self
->
priv
->
stream_id
,
self
->
priv
->
component_id
,
count
-
len
,
buf
fer
+
len
);
self
->
priv
->
component_id
,
count
-
len
,
buf
+
len
);
g_mutex_lock
(
&
write_data
->
mutex
);
g_mutex_lock
(
&
write_data
->
mutex
);
...
...
configure.ac
View file @
11ff575f
...
@@ -124,7 +124,6 @@ AS_IF([test "x$enable_compile_warnings" != "xno" -a \
...
@@ -124,7 +124,6 @@ AS_IF([test "x$enable_compile_warnings" != "xno" -a \
NICE_ADD_FLAG([-Wnested-externs])
NICE_ADD_FLAG([-Wnested-externs])
NICE_ADD_FLAG([-Wwrite-strings])
NICE_ADD_FLAG([-Wwrite-strings])
NICE_ADD_FLAG([-Wpointer-arith])
NICE_ADD_FLAG([-Wpointer-arith])
NICE_ADD_FLAG([-Wbad-function-cast])
NICE_ADD_FLAG([-Wmissing-declarations])
NICE_ADD_FLAG([-Wmissing-declarations])
NICE_ADD_FLAG([-Wmissing-prototypes])
NICE_ADD_FLAG([-Wmissing-prototypes])
NICE_ADD_FLAG([-Wstrict-prototypes])
NICE_ADD_FLAG([-Wstrict-prototypes])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment