From 7e64a68252d03412f1ac6c8b70d7139c377941a3 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Wed, 23 Jul 2025 16:46:01 +0900 Subject: [PATCH 1/2] 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 20f75d827d49ab..edd270c3adafcd 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); From 85221800ca1f5237c87fc151f5cb839c9a2a41c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Luiz=20Tiago=20Soares?= Date: Wed, 23 Jul 2025 08:23:38 -0300 Subject: [PATCH 2/2] Add comments to autogen script --- autogen.sh | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/autogen.sh b/autogen.sh index f8cdf3c0c1eb69..f11a471a08efa5 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,17 +1,22 @@ #!/bin/sh +# Clear PWD to force commands to recompute working directory PWD= + +# Figure out the source directory for this script +# configure.ac should be in the same place case "$0" in -*/*) srcdir=`dirname $0`;; -*) srcdir="";; + */* ) srcdir=`dirname "$0"` ;; # Called with path + * ) srcdir="";; # Otherwise esac -symlink='--install --symlink' +# If install-only is explicitly requested, disbale symlink flags case " $* " in - *" -i "*|*" --install "*) - # reset to copy missing standard auxiliary files, instead of symlinks - symlink= - ;; + *" -i "* | *" --install"* ) symlink_flags="" ;; + * ) symlink_flags="--install --symlink" ;; esac -exec ${AUTORECONF:-autoreconf} ${symlink} "$@" ${srcdir:+"$srcdir"} +exec ${AUTORECONF:-autoreconf} \ + $symlink_flags \ + "$@" \ + $srcdir