Fix a strict-prototypes warning
authorEvan Miller <emmiller@gmail.com>
Wed, 7 Jul 2021 16:14:26 +0000 (16:14 +0000)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Wed, 14 Jul 2021 15:07:46 +0000 (15:07 +0000)
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>

src/pulsecore/mem.h

index cba1410..abb39c9 100644 (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);
 }
 
-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