Hello. I am trying to compile libevent 2.1.10 on MacOS X 10.9 with
Xcode 5.1. A warning and error message was generated and is appended below.
The compiler does not seem to expand or define the __attribute__ macro.
The EVUTIL_FALLTHROUGH macro is defined via EVUTIL_HAS_ATTRIBUTE, which
is simply a wrapper for __has_attribute, which is a feature of clang.
The comment says that clang 3.2-3.5 has a bug with __has_attribute, does
the bug continue even in clang 5.1?
====
CC bufferevent_filter.lo
bufferevent_filter.c:616:3: warning: declaration does not declare anything
[-Wmissing-declarations]
EVUTIL_FALLTHROUGH;
^~~~~~~~~~~~~~~~~~
./util-internal.h:347:28: note: expanded from macro 'EVUTIL_FALLTHROUGH'
#define EVUTIL_FALLTHROUGH __attribute__((fallthrough))
^~~~~~~~~~~~~
bufferevent_filter.c:619:3: error: expected expression
EVUTIL_FALLTHROUGH;
^
./util-internal.h:347:28: note: expanded from macro 'EVUTIL_FALLTHROUGH'
#define EVUTIL_FALLTHROUGH __attribute__((fallthrough))
^
***********************************************************************
To unsubscribe, send an e-mail to [email protected] with
unsubscribe libevent-users in the body.