add void casts to suppress "result unused" warnings (clang)
This commit is contained in:
parent
41fdcf328c
commit
fb00e7fddc
1
NEWS
1
NEWS
|
@ -1,5 +1,6 @@
|
||||||
ver 0.16.1 (2010/??/??)
|
ver 0.16.1 (2010/??/??)
|
||||||
* audio_check: fix parameter in prototype
|
* audio_check: fix parameter in prototype
|
||||||
|
* add void casts to suppress "result unused" warnings (clang)
|
||||||
* decoder:
|
* decoder:
|
||||||
- mad: work around build failure on Solaris
|
- mad: work around build failure on Solaris
|
||||||
* output:
|
* output:
|
||||||
|
|
|
@ -303,7 +303,7 @@ ao_wait(struct audio_output *ao)
|
||||||
GTimeVal tv;
|
GTimeVal tv;
|
||||||
g_get_current_time(&tv);
|
g_get_current_time(&tv);
|
||||||
g_time_val_add(&tv, delay * 1000);
|
g_time_val_add(&tv, delay * 1000);
|
||||||
g_cond_timed_wait(ao->cond, ao->mutex, &tv);
|
(void)g_cond_timed_wait(ao->cond, ao->mutex, &tv);
|
||||||
|
|
||||||
if (ao->command != AO_COMMAND_NONE)
|
if (ao->command != AO_COMMAND_NONE)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -47,7 +47,7 @@ poison_noaccess(void *p, size_t length)
|
||||||
memset(p, 0x01, length);
|
memset(p, 0x01, length);
|
||||||
|
|
||||||
#ifdef HAVE_VALGRIND_MEMCHECK_H
|
#ifdef HAVE_VALGRIND_MEMCHECK_H
|
||||||
VALGRIND_MAKE_MEM_NOACCESS(p, length);
|
(void)VALGRIND_MAKE_MEM_NOACCESS(p, length);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ poison_undefined(void *p, size_t length)
|
||||||
memset(p, 0x02, length);
|
memset(p, 0x02, length);
|
||||||
|
|
||||||
#ifdef HAVE_VALGRIND_MEMCHECK_H
|
#ifdef HAVE_VALGRIND_MEMCHECK_H
|
||||||
VALGRIND_MAKE_MEM_UNDEFINED(p, length);
|
(void)VALGRIND_MAKE_MEM_UNDEFINED(p, length);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue