From 38340d34972fc4da19c15ddeda83df647f0eddfc Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Sun, 20 Feb 2022 11:44:13 -0500 Subject: [PATCH] [common] allow building with -Wstrict-prototypes --- common/include/common/ivshmem.h | 2 +- common/include/common/ll.h | 2 +- common/include/common/sysinfo.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/include/common/ivshmem.h b/common/include/common/ivshmem.h index e6a6d197..69d41a90 100644 --- a/common/include/common/ivshmem.h +++ b/common/include/common/ivshmem.h @@ -33,7 +33,7 @@ struct IVSHMEM void * opaque; }; -void ivshmemOptionsInit(); +void ivshmemOptionsInit(void); bool ivshmemInit(struct IVSHMEM * dev); bool ivshmemOpen(struct IVSHMEM * dev); bool ivshmemOpenDev(struct IVSHMEM * dev, const char * shmDev); diff --git a/common/include/common/ll.h b/common/include/common/ll.h index 2a4c0c94..924fa3ec 100644 --- a/common/include/common/ll.h +++ b/common/include/common/ll.h @@ -40,7 +40,7 @@ struct ll LG_Lock lock; }; -struct ll * ll_new(); +struct ll * ll_new(void); void ll_free (struct ll * list); void ll_push (struct ll * list, void * data); bool ll_shift (struct ll * list, void ** data); diff --git a/common/include/common/sysinfo.h b/common/include/common/sysinfo.h index 566b6d15..b463804c 100644 --- a/common/include/common/sysinfo.h +++ b/common/include/common/sysinfo.h @@ -22,6 +22,6 @@ #define _H_LG_COMMON_SYSUTILS // returns the page size -long sysinfo_getPageSize(); +long sysinfo_getPageSize(void); #endif