unix: appease warning about non-standard inline
Clang warns about using `inline`, which is not technically allowed in C89 mode (libuv compiles with `-std=c89`). It's probably best to leave it to the compiler to do the inlining anyway.
This commit is contained in:
parent
7dbb974fd5
commit
c39648674c
@ -497,7 +497,7 @@ static ssize_t uv__fs_write(uv_fs_t* req) {
|
||||
return r;
|
||||
}
|
||||
|
||||
static inline void uv__to_stat(struct stat* src, uv_stat_t* dst) {
|
||||
static void uv__to_stat(struct stat* src, uv_stat_t* dst) {
|
||||
dst->st_dev = src->st_dev;
|
||||
dst->st_mode = src->st_mode;
|
||||
dst->st_nlink = src->st_nlink;
|
||||
|
||||
@ -116,7 +116,7 @@ static void uv__signal_unlock_and_unblock(sigset_t* saved_sigmask) {
|
||||
}
|
||||
|
||||
|
||||
inline static uv_signal_t* uv__signal_first_handle(int signum) {
|
||||
static uv_signal_t* uv__signal_first_handle(int signum) {
|
||||
/* This function must be called with the signal lock held. */
|
||||
uv_signal_t lookup;
|
||||
uv_signal_t* handle;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user