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>
This commit is contained in:
Evan Miller 2021-07-07 16:14:26 +00:00 committed by PulseAudio Marge Bot
parent 0efc38e95f
commit bea3fa7d21

View file

@ -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); 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) #if defined(HAVE_CREDS) && defined(HAVE_MEMFD)
return true; return true;
#else #else