Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Unix: avoid unused function warnings

  • Loading branch information
piscisaureus committed May 15, 2012
1 parent c616958 commit 97948e634c370f77400e6175a9b0edbd76266cf2
Showing with 11 additions and 5 deletions.
  1. +11 −5 src/uv-common.h
@@ -35,12 +35,18 @@

#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))

#if !defined(NDEBUG)
# define INLINE /* empty */
#elif defined(_MSC_VER)
# define INLINE __inline
#ifdef DEBUG
# ifdef _MSC_VER
# define INLINE /* empty */
# else
# define INLINE __attribute__((unused))
# endif
#else
# define INLINE inline
# ifdef _MSC_VER
# define INLINE __inline
# else
# define INLINE inline
# endif
#endif

#ifndef _WIN32

0 comments on commit 97948e6

Please sign in to comment.
You can’t perform that action at this time.