mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
explcitly ignore return values of some functions marked with gcc's warn_unused_result attribute
This commit is contained in:
parent
845b312f44
commit
40d71e1f49
3 changed files with 4 additions and 4 deletions
|
|
@ -139,7 +139,7 @@ static void signal_handler(int sig) {
|
|||
write_err("Soft CPU time limit exhausted, terminating.\n");
|
||||
|
||||
/* Try a soft cleanup */
|
||||
write(the_pipe[1], &c, sizeof(c));
|
||||
(void) write(the_pipe[1], &c, sizeof(c));
|
||||
phase = PHASE_SOFT;
|
||||
reset_cpu_time(CPUTIME_INTERVAL_HARD);
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ static void load(struct userdata *u) {
|
|||
char ln[256] = "";
|
||||
pa_sink *s;
|
||||
|
||||
fgets(ln, sizeof(ln)-1, f);
|
||||
(void) fgets(ln, sizeof(ln)-1, f);
|
||||
pa_strip_nl(ln);
|
||||
fclose(f);
|
||||
|
||||
|
|
@ -84,7 +84,7 @@ static void load(struct userdata *u) {
|
|||
char ln[256] = "";
|
||||
pa_source *s;
|
||||
|
||||
fgets(ln, sizeof(ln)-1, f);
|
||||
(void) fgets(ln, sizeof(ln)-1, f);
|
||||
pa_strip_nl(ln);
|
||||
fclose(f);
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ static pa_defer_event *de;
|
|||
|
||||
static void iocb(pa_mainloop_api*a, pa_io_event *e, int fd, pa_io_event_flags_t f, void *userdata) {
|
||||
unsigned char c;
|
||||
read(fd, &c, sizeof(c));
|
||||
(void) read(fd, &c, sizeof(c));
|
||||
fprintf(stderr, "IO EVENT: %c\n", c < 32 ? '.' : c);
|
||||
a->defer_enable(de, 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue