[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] Fix a strict-prototypes warning

PulseAudio Marge Bot (@pulseaudio-merge-bot) gitlab at gitlab.freedesktop.org
Wed Jul 14 15:10:46 UTC 2021



PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio


Commits:
bea3fa7d by Evan Miller at 2021-07-14T15:07:46+00:00
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>

- - - - -


1 changed file:

- src/pulsecore/mem.h


Changes:

=====================================
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



View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/bea3fa7d21fdf7d90b73270e836bfffb41cc6fdc

-- 
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/bea3fa7d21fdf7d90b73270e836bfffb41cc6fdc
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20210714/bbdc8531/attachment.htm>


More information about the pulseaudio-commits mailing list