From 320057df1c2902fa8c1d22af14bc3e6e9977e3e4 Mon Sep 17 00:00:00 2001 From: shove Date: Mon, 7 Aug 2023 14:19:54 +0800 Subject: [PATCH] os.notify: remove the meaningless [noinit] attribute of the notifier (#19075) --- vlib/os/notify/backend_darwin.c.v | 2 -- vlib/os/notify/backend_linux.c.v | 2 -- 2 files changed, 4 deletions(-) diff --git a/vlib/os/notify/backend_darwin.c.v b/vlib/os/notify/backend_darwin.c.v index 5f0e213475..3a88a13923 100644 --- a/vlib/os/notify/backend_darwin.c.v +++ b/vlib/os/notify/backend_darwin.c.v @@ -21,14 +21,12 @@ fn C.EV_SET(voidptr, u32, i16, u16, u32, int, voidptr) // KqueueNotifier provides methods that implement FdNotifier using the // kqueue I/O event notification facility (macos, freeBSD, xxxBSD...unix only) -[noinit] struct KqueueNotifier { kqueue_fd int } // KqueueEvent describes an event that occurred for a file descriptor in // the watch list -[noinit] struct KqueueEvent { pub: fd int diff --git a/vlib/os/notify/backend_linux.c.v b/vlib/os/notify/backend_linux.c.v index 7c29016e58..842cfb9476 100644 --- a/vlib/os/notify/backend_linux.c.v +++ b/vlib/os/notify/backend_linux.c.v @@ -26,14 +26,12 @@ fn C.epoll_wait(int, &C.epoll_event, int, int) int // EpollNotifier provides methods that implement FdNotifier using the // epoll I/O event notification facility (linux only) -[noinit] struct EpollNotifier { epoll_fd int } // EpollEvent describes an event that occurred for a file descriptor in // the watch list -[noinit] struct EpollEvent { pub: fd int