Skip to content

Commit a959441

Browse files
committed
Add static / void qualifiers.
1 parent 7ed5910 commit a959441

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ext/io/event/selector/epoll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ VALUE IO_Event_Selector_EPoll_wakeup(VALUE self) {
10351035
return Qfalse;
10361036
}
10371037

1038-
int IO_Event_Selector_EPoll_supported_p() {
1038+
static int IO_Event_Selector_EPoll_supported_p(void) {
10391039
int fd = epoll_create1(EPOLL_CLOEXEC);
10401040

10411041
if (fd < 0) {

ext/io/event/selector/kqueue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ VALUE IO_Event_Selector_KQueue_wakeup(VALUE self) {
10461046
}
10471047

10481048

1049-
int IO_Event_Selector_KQueue_supported_p() {
1049+
static int IO_Event_Selector_KQueue_supported_p(void) {
10501050
int fd = kqueue();
10511051

10521052
if (fd < 0) {

ext/io/event/selector/uring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ VALUE IO_Event_Selector_URing_wakeup(VALUE self) {
11751175

11761176
#pragma mark - Native Methods
11771177

1178-
int IO_Event_Selector_URing_supported_p() {
1178+
static int IO_Event_Selector_URing_supported_p(void) {
11791179
struct io_uring ring;
11801180
int result = io_uring_queue_init(1, &ring, 0);
11811181

0 commit comments

Comments
 (0)