Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Unix: avoid unused function warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed May 15, 2012
1 parent c616958 commit 97948e6
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/uv-common.h
Expand Up @@ -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
Expand Down

0 comments on commit 97948e6

Please sign in to comment.