[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] macosx, __attribute__ compile error
- To: libevent-users@xxxxxxxxxxxxx
- Subject: [Libevent-users] macosx, __attribute__ compile error
- From: Jerry <jerryyhom@xxxxxxxxx>
- Date: Tue, 23 Jul 2019 00:26:56 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Tue, 23 Jul 2019 03:27:03 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=7U2Zfb1bUovB0pJqUep2RjBIL6u1ihnTRU69L9ZMebA=; b=uZZXWdJsFv+eqC8L7n/LFMkfrlVBk19o48XK6FuqcBRlpWYiWZf7nD5z8LCDAenUA0 1NW9dcn9g1sd1aQUNt7umasodBowIWq6OG2W/6HE4evfWjYRbaqV196kvxXP4cF2N9E2 Wu8GFTCcaKnG8DCCOe9/RQ4j1ssdCeXyZt6fw03KQrZTtkYxkFMYvfktN5bvq8LIHI37 UEgF+FKQKw60yHSgbONb9kkWMJsuZaos6r9HSC/wslfm4xARjwT9FS4j3D1LWE/cYwGE 0XNyCdV06FYPXxst7w1jpKIPOuR+5B0t2czRzWE/M9aPH1krqmdoALT08sYHTi/oH49y Qr0w==
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
- User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:60.0) Gecko/20100101 Thunderbird/60.8.0
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 majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.