From 5e3be1be09c947810732e7be2a4bb1b0ed75de4a Mon Sep 17 00:00:00 2001 From: Madelyn Olson <34459052+madolson@users.noreply.github.com> Date: Tue, 2 May 2023 17:31:32 -0700 Subject: Remove prototypes with empty declarations (#12020) Technically declaring a prototype with an empty declaration has been deprecated since the early days of C, but we never got a warning for it. C2x will apparently be introducing a breaking change if you are using this type of declarator, so Clang 15 has started issuing a warning with -pedantic. Although not apparently a problem for any of the compiler we build on, if feels like the right thing is to properly adhere to the C standard and use (void). --- tests/modules/blockonkeys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/modules/blockonkeys.c b/tests/modules/blockonkeys.c index 8f4353a55..bc3b6b1a4 100644 --- a/tests/modules/blockonkeys.c +++ b/tests/modules/blockonkeys.c @@ -21,7 +21,7 @@ typedef struct { static RedisModuleType *fsltype = NULL; -fsl_t *fsl_type_create() { +fsl_t *fsl_type_create(void) { fsl_t *o; o = RedisModule_Alloc(sizeof(*o)); o->length = 0; -- cgit v1.2.1