libev-4.20, ev.h: fatal error: expected identifier
Marc Lehmann
schmorp at schmorp.de
Mon Aug 10 06:17:32 CEST 2015
Hi, and thanks for your terse... report.
On Mon, Aug 10, 2015 at 06:07:37AM +0300, Denis Denisov <denji0k at gmail.com> wrote:
On which OS does this happen?
> In file included from /usr/local/include/ev++.h:46:
> /usr/local/include/ev.h:240:3: fatal error: expected identifier
> EV_ERROR = (int)0x80000000 /* sent when an error occurs */
> ^
> /usr/include/sys/event.h:86:18: note: expanded from macro 'EV_ERROR'
> #define EV_ERROR 0x4000 /* error, data contains errno */
Nothing in libev includes ev++.h, so it seems this message has nothing to
do with libev but indicates an error in whatever is trying to use it.
> [ev.c:4827] -> [ev.c:4821]: (warning) Possible null pointer
> dereference: once - otherwise it is redundant to check it against
> null.
This looks like a compiler bug or a modified version to me - there is no
pointer dereference anywhere near that line. Have you tried using gcc?
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the libev
mailing list