From 7e64a68252d03412f1ac6c8b70d7139c377941a3 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Wed, 23 Jul 2025 16:46:01 +0900 Subject: [PATCH] Prevent a warning: old-style function definition ipsocket.c:57:1: warning: old-style function definition [-Wold-style-definition] 57 | current_clocktime() | ^~~~~~~~~~~~~~~~~ --- ext/socket/ipsocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/socket/ipsocket.c b/ext/socket/ipsocket.c index 20f75d827d..edd270c3ad 100644 --- a/ext/socket/ipsocket.c +++ b/ext/socket/ipsocket.c @@ -54,7 +54,7 @@ inetsock_cleanup(VALUE v) } static VALUE -current_clocktime() +current_clocktime(void) { VALUE clock_monotnic_const = rb_const_get(rb_mProcess, rb_intern("CLOCK_MONOTONIC")); return rb_funcall(rb_mProcess, rb_intern("clock_gettime"), 1, clock_monotnic_const);