Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
79eb7623
Commit
79eb7623
authored
Mar 19, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event_pipe, test: explicitly ignore write() return value
Some compilers are very picky, but we really aren't interested in the return value.
parent
b9e64d04
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
8 deletions
+11
-8
event_pipe.c
src/event_pipe.c
+2
-1
read_tags.c
test/read_tags.c
+1
-1
run_convert.c
test/run_convert.c
+1
-1
run_decoder.c
test/run_decoder.c
+1
-1
run_encoder.c
test/run_encoder.c
+3
-2
run_normalize.c
test/run_normalize.c
+2
-1
software_volume.c
test/software_volume.c
+1
-1
No files found.
src/event_pipe.c
View file @
79eb7623
...
...
@@ -159,5 +159,6 @@ void event_pipe_emit_fast(enum pipe_event event)
assert
((
unsigned
)
event
<
PIPE_EVENT_MAX
);
pipe_events
[
event
]
=
true
;
(
void
)
write
(
event_pipe
[
1
],
""
,
1
);
G_GNUC_UNUSED
ssize_t
nbytes
=
write
(
event_pipe
[
1
],
""
,
1
);
}
test/read_tags.c
View file @
79eb7623
...
...
@@ -104,7 +104,7 @@ decoder_data(G_GNUC_UNUSED struct decoder *decoder,
const
void
*
data
,
size_t
datalen
,
G_GNUC_UNUSED
uint16_t
bit_rate
)
{
write
(
1
,
data
,
datalen
);
G_GNUC_UNUSED
ssize_t
nbytes
=
write
(
1
,
data
,
datalen
);
return
DECODE_COMMAND_NONE
;
}
...
...
test/run_convert.c
View file @
79eb7623
...
...
@@ -115,7 +115,7 @@ int main(int argc, char **argv)
return
2
;
}
write
(
1
,
output
,
length
);
G_GNUC_UNUSED
ssize_t
ignored
=
write
(
1
,
output
,
length
);
}
pcm_convert_deinit
(
&
state
);
...
...
test/run_decoder.c
View file @
79eb7623
...
...
@@ -126,7 +126,7 @@ decoder_data(G_GNUC_UNUSED struct decoder *decoder,
const
void
*
data
,
size_t
datalen
,
G_GNUC_UNUSED
uint16_t
kbit_rate
)
{
write
(
1
,
data
,
datalen
);
G_GNUC_UNUSED
ssize_t
nbytes
=
write
(
1
,
data
,
datalen
);
return
DECODE_COMMAND_NONE
;
}
...
...
test/run_encoder.c
View file @
79eb7623
...
...
@@ -36,8 +36,9 @@ encoder_to_stdout(struct encoder *encoder)
size_t
length
;
static
char
buffer
[
32768
];
while
((
length
=
encoder_read
(
encoder
,
buffer
,
sizeof
(
buffer
)))
>
0
)
write
(
1
,
buffer
,
length
);
while
((
length
=
encoder_read
(
encoder
,
buffer
,
sizeof
(
buffer
)))
>
0
)
{
G_GNUC_UNUSED
ssize_t
ignored
=
write
(
1
,
buffer
,
length
);
}
}
int
main
(
int
argc
,
char
**
argv
)
...
...
test/run_normalize.c
View file @
79eb7623
...
...
@@ -65,7 +65,8 @@ int main(int argc, char **argv)
while
((
nbytes
=
read
(
0
,
buffer
,
sizeof
(
buffer
)))
>
0
)
{
Compressor_Process_int16
(
compressor
,
(
int16_t
*
)
buffer
,
nbytes
/
2
);
write
(
1
,
buffer
,
nbytes
);
G_GNUC_UNUSED
ssize_t
ignored
=
write
(
1
,
buffer
,
nbytes
);
}
Compressor_delete
(
compressor
);
...
...
test/software_volume.c
View file @
79eb7623
...
...
@@ -65,6 +65,6 @@ int main(int argc, char **argv)
return
2
;
}
write
(
1
,
buffer
,
nbytes
);
G_GNUC_UNUSED
ssize_t
ignored
=
write
(
1
,
buffer
,
nbytes
);
}
}
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