Skip to content

Commit a46309d

Browse files
authored
Flag rsock_raise_user_specified_timeout() as NORETURN (ruby#13928)
This suppresses this warning: ../../../ext/socket/ipsocket.c: In function ‘rsock_raise_user_specified_timeout’: ../../../ext/socket/ipsocket.c:30:1: warning: function might be candidate for attribute ‘noreturn’ [-Wsuggest-attribute=noreturn] 30 | rsock_raise_user_specified_timeout() | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 parent b0a2902 commit a46309d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/socket/ipsocket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct inetsock_arg
2727
};
2828

2929
void
30-
rsock_raise_user_specified_timeout()
30+
rsock_raise_user_specified_timeout(void)
3131
{
3232
VALUE errno_module = rb_const_get(rb_cObject, rb_intern("Errno"));
3333
VALUE etimedout_error = rb_const_get(errno_module, rb_intern("ETIMEDOUT"));

0 commit comments

Comments
 (0)