From e95126cf048b08d7ff5eb72ec33737e9e27c08f8 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Sat, 15 Aug 2015 17:25:00 +0200 Subject: Don't use function definitions looking like old-style ones. This fixes a bunch of somewhat pedantic warnings with new compilers. Since by far the majority of other functions definitions use the (void) style it just seems to be consistent to do so as well in the remaining few places. --- src/backend/storage/ipc/dsm_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/storage/ipc/dsm_impl.c') diff --git a/src/backend/storage/ipc/dsm_impl.c b/src/backend/storage/ipc/dsm_impl.c index 0b10dac7290..921f0292e36 100644 --- a/src/backend/storage/ipc/dsm_impl.c +++ b/src/backend/storage/ipc/dsm_impl.c @@ -1027,7 +1027,7 @@ dsm_impl_pin_segment(dsm_handle handle, void *impl_private) } static int -errcode_for_dynamic_shared_memory() +errcode_for_dynamic_shared_memory(void) { if (errno == EFBIG || errno == ENOMEM) return errcode(ERRCODE_OUT_OF_MEMORY); -- cgit v1.2.3