From c39648674c404324c276831fc0ec5c99f30b2fb5 Mon Sep 17 00:00:00 2001 From: Sean Silva Date: Sat, 25 May 2013 00:43:52 -0600 Subject: [PATCH] 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. --- src/unix/fs.c | 2 +- src/unix/signal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unix/fs.c b/src/unix/fs.c index fb8cdb25..b22eaccd 100644 --- a/src/unix/fs.c +++ b/src/unix/fs.c @@ -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; diff --git a/src/unix/signal.c b/src/unix/signal.c index 78a63182..6482c58a 100644 --- a/src/unix/signal.c +++ b/src/unix/signal.c @@ -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;