summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Miller <emmiller@gmail.com>2021-07-07 16:14:26 +0000
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>2021-07-14 15:07:46 +0000
commitbea3fa7d21fdf7d90b73270e836bfffb41cc6fdc (patch)
tree96efeeb7794bec62229829833774fcf92a25bb01
parent0efc38e95fafa84934da9c03c200303cac7da16a (diff)
downloadpulseaudio-bea3fa7d21fdf7d90b73270e836bfffb41cc6fdc.tar.gz
Fix a strict-prototypes warning
Some older compilers complain about the empty arg list in pa_memfd_is_locally_supported. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/603>
-rw-r--r--src/pulsecore/mem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/mem.h b/src/pulsecore/mem.h
index cba141048..abb39c9e6 100644
--- a/src/pulsecore/mem.h
+++ b/src/pulsecore/mem.h
@@ -49,7 +49,7 @@ static inline bool pa_mem_type_is_shared(pa_mem_type_t t) {
return (t == PA_MEM_TYPE_SHARED_POSIX) || (t == PA_MEM_TYPE_SHARED_MEMFD);
}
-static inline bool pa_memfd_is_locally_supported() {
+static inline bool pa_memfd_is_locally_supported(void) {
#if defined(HAVE_CREDS) && defined(HAVE_MEMFD)
return true;
#else